Sort Multidimensional Array by KEY

Array is the most important part of programming. Sometime we need to sort out our result based on key (ascending and descending order). Sometime it’s boring for us. For this reason I have created a function for sorting out the array based on my given key and of course it’s working for the multidimensional array.

 

OUTPUT