# woocommerce-pos/1.10.19/includes/API/V2/Proxy/Terms_Proxy_Behavior.php

WCPOS – Point of Sale (POS) plugin for WooCommerce, version 1.10.19. 31 lines.

- Page: https://pluginprobe.com/plugins/woocommerce-pos/1.10.19/code/includes/API/V2/Proxy/Terms_Proxy_Behavior.php
- Raw: https://pluginprobe.com/plugins/woocommerce-pos/1.10.19/raw/includes/API/V2/Proxy/Terms_Proxy_Behavior.php
- Modified: 2026-08-25T07:52:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/woocommerce-pos/1.10.19/code/includes/API/V2/Proxy/Terms_Proxy_Behavior.php#L10-L20`.

```php
<?php
/**
 * Term catalog proxy behavior (categories, tags, brands).
 *
 * @package WCPOS\WooCommercePOS\API\V2\Proxy
 */

namespace WCPOS\WooCommercePOS\API\V2\Proxy;

/**
 * Pins the stable name-sort tiebreak during the forward.
 *
 * The POS client's term lanes default to name ascending (mono#1371) and walk
 * multi-page windows; see {@see Stable_Sort} for why ties need a secondary key.
 */
final class Terms_Proxy_Behavior extends Scoped_Proxy_Behavior {
	/**
	 * Install this resource's hooks and return their removal tuples.
	 *
	 * @return array<int, array{0: string, 1: callable, 2: int}>
	 */
	protected function install(): array {
		$filter = static function ( $clauses ) {
			return Stable_Sort::with_term_id_tiebreak( (array) $clauses );
		};
		add_filter( 'terms_clauses', $filter );

		return array( array( 'terms_clauses', $filter, 10 ) );
	}
}

```
