Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

collections_comparator()

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 1254 to 1257

Definition

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

This article was last updated 23rd November 2020 18:05 Europe/London time based on the source file dated 23rd November 2020 16:00 Europe/London time.