Function Reference: geodir_sort_by_count_obj
Summary
Compares post count from object for sorting.
Package
GeoDirectory
Parameters
- $a
- (object) (required) The left side object to compare.
- Default: None
- $b
- (object) (required) The right side object to compare.
- Default: None
Return Values
- (bool)
Change Log
Since: 1.0.0
Source File
geodir_sort_by_count_obj() is located in geodirectory-functions/general_functions.php [Line: 4239]
Source Code
function geodir_sort_by_count_obj( $a, $b ) { return $a->count < $b->count; }