Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

collections_comparator_desc()

Description

Case insensitive string comparisons using a "natural order" algorithm for collection names

Parameters

ColumnTypeDefaultDescription
$a string
$b string

Return

integer < 0 if $a is less than $b > 0 if $a is greater than $b, and 0 if they are equal.

Location

include/collections_functions.php lines 1079 to 1082

Definition

 
function collections_comparator_desc($a$b)
    {
    return 
strnatcasecmp(i18n_get_collection_name($b), i18n_get_collection_name($a));
    }        

This article was last updated 5th July 2020 05:35 Europe/London time based on the source file dated 3rd July 2020 14:33 Europe/London time.