Sorting a multidimensional array by value - a common output problem for me