i have this enormous array that i am pulling from an API for BattleField Bad Company 2, and the soldier stats can be pulled as a multi dimensional array with an inner array
To order descending an array, I used
function sorterdesc($one, $two) { return ($two['cont'] - $one['cont']); }
For ascending :
function sorterasc($one, $two) { return ($one['cont'] - $two['cont']); }
Like this it works fine with numeric values