To sort an array by its value, similiar to mysql sort by just use usort($array, create_function(‘$a, $b, $sortBy=”distance”‘, ‘return strnatcmp($a[$sortBy], $b[$sortBy]);’)); $array stores the array $sortBy set the key to…
Archive