apply_filters( 'a_z_listing_item_sorting_comparator', int , string $a , string $b )
Compare two titles to determine sorting order.
Description
Parameters
(int) The previous order preference: -1 if $a is less than $b. 1 if $a is greater than $b. 0 if they are identical.
- $a
(string) The first title. Converted to lower case.
- $b
(string) The second title. Converted to lower case.
Return
(int) The new order preference: -1 if $a is less than $b. 1 if $a is greater than $b. 0 if they are identical.
Source
File: src/Query.php
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |