Say i have an array like,
$x = [1012 => "banana",2012 => "orange", 2 => "chocolate"];
I should be getting the result like:
$x = [2012 => "orange",1012 => "banana",2 => "chocolate"];
So in the descending order based on the number in the key positions.