Callback to sort array by a ‘name’ key.
Parameters
$aarrayrequired- First array.
$barrayrequired- Second array.
Source
function _sort_name_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.