Php sort multidimensional array by index with sql syntax