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