Core Function
View Source on Trac ↗ _wp_object_name_sort_cb()
_wp_object_name_sort_cb( mixed $a, mixed $b ) Serves as a callback for comparing objects based on name.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $a object | The first object to compare. Required |
| $b object | The second object to compare. Required |
Return Value
(int)
int Negative number if `$a->name` is less than `$b->name`, zero if they are equal,
or greater than zero if `$a->name` is greater than `$b->name`.
Function Information
Since Version
3.1.0
Source File
wp-includes/category-template.php
Advertisement