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