Serves as a callback for comparing objects based on count.
Description
Used with uasort()
.
Parameters
$a
objectrequired- The first object to compare.
$b
objectrequired- The second object to compare.
Source
function _wp_object_count_sort_cb( $a, $b ) {
return ( $a->count - $b->count );
}
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.