I have an array (which is an equation) lets say it is
Array (  => 18x  => 10x^2  => 17 )
I want to order the array in terms of the value after ^, so that the highest values after ^ are grouped first. Therefore the above array I want it sorted to become
Array (  => 10x^2  => 18x  => 17 )Does anyone have any idea how I would sort it? I have tried using php sort() to no avail.