Function Reference: geodir_sort_terms_by_count
Summary
Sort terms object by post count.
Package
GeoDirectory
param array $terms An array of term objects.
Parameters
- ($terms) (required)
- Default: None
Return Values
- (array)
- Sorted terms array.
Change Log
Since: 1.0.0
Source File
geodir_sort_terms_by_count() is located in geodirectory-functions/general_functions.php [Line: 4167]
Source Code
function geodir_sort_terms_by_count( $terms ) { usort( $terms, "geodir_sort_by_count_obj" ); return $terms; }