Declares a callback to sort array by a ‘Name’ key.
Parameters
$a
arrayrequired- array with
'Name'
key. $b
arrayrequired- array with
'Name'
key.
Source
function _sort_uname_callback( $a, $b ) {
return strnatcasecmp( $a['Name'], $b['Name'] );
}
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.