Sort categories by name.
Description
Used by usort() as a callback, should not be used directly. Can actually be used to sort any term object.
Parameters
$a
objectrequired$b
objectrequired
Source
function _usort_terms_by_name( $a, $b ) {
_deprecated_function( __FUNCTION__, '4.7.0', 'wp_list_sort()' );
return strcmp( $a->name, $b->name );
}
Changelog
Version | Description |
---|---|
4.7.0 | Use wp_list_sort() |
2.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.