Thread: Array Sorting !
View Single Post
Old 08-01-2011, 04:38 AM   #3 (permalink)
tony
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

what about usort:

PHP Code:
usort($missed, function ($a, $b) {
  if ($a[2] == $b[2]) {
    return 0;
  }
  return ($a[2] < $b[2]) ? -1 : 1;
});
tony is offline  
Reply With Quote