function libraries_admin_sort_title in Libraries API 7.2
Sorts libraries by name.
This function can be used as a callback for usort() or uasort().
Parameters
array $a: The first library information array.
array $b: The second library information array.
Return value
int Returns -1 if $a is considered smaller than $b, 1 if $a considered greater than $b and 0 if $a and $b are considered equal.
See also
usort()
uasort()
1 string reference to 'libraries_admin_sort_title'
- libraries_admin_overview in ./
libraries.admin.inc - Form generation callback for the libraries overview table.
File
- ./
libraries.admin.inc, line 553 - Provides administrative page and form callbacks for Libraries module.
Code
function libraries_admin_sort_title(array $a, array $b) {
return strnatcasecmp($a['name'], $b['name']);
}