Serves as a callback for comparing objects based on name.
Description
Used with uasort().
Parameters
$aobjectrequired- The first object to compare.
$bobjectrequired- The second object to compare.
Source
function _wp_object_name_sort_cb( $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.