Function Reference: geodir_sort_by_count

Summary

Compares post count from array for sorting.

Package

GeoDirectory

Parameters

$a
(array) (required) The left side array to compare.

Default: None
$b
(array) (required) The right side array to compare.

Default: None

Return Values

(bool)

    Change Log

    Since: 1.0.0

    Source File

    geodir_sort_by_count() is located in geodirectory-functions/general_functions.php [Line: 4224]

    Source Code

    function geodir_sort_by_count( $a, $b ) {
    	return $a['count'] < $b['count'];
    }