Array ( [1] => Array ( [id] => 1 [sort] => 1 ) [3] => Array ( [id] => 3 [sort] => 3 ) [2] => A
Something like this:
uasort($array, 'compfunc'); function compfunc($a, $b) { return $a['sort'] - $b['sort']; }