I've been stumped by a question of a fellow freelancer today. Anyone know if it's possible in php to do something like this: usort($array, function($a, $b) { if($a == $b) return 0; return ($a < $b) ? -1 : 1; }); Thanks! Mark