I have an Array, Sample:
$array { [0] { [something]=1; [something2]=2; } [1] { [something]=2; [something2]=4; } [2] { [somethin
function compare($x, $y) { return $x['something'] - $y['something']; } usort($input_array, 'compare');
you need to use a usort() similar to the above.