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

Changelog
Version Description
3.1.0 Introduced.

More Information

You are currently logged out. To view tickets you must first login.

I have read and understood the Terms of Service



User Contributed Notes

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.