![]() |
Sorting a multidimensional array...
Well I'm back to programming... but I'm having trouble figuring this out... I want to do this with as LITTLE code as possible...
I have an array: Code:
$id $arr[$id]['w'] $arr[$id]['l'] ['w'] DESC, ['l'] ASC What that means, it should sort by the highest number of "wins" first, and then break ties by the lowest number of "losses". Does anyone know a simple way to do this? |
<a href="http://de.php.net/manual/en/function.uasort.php" target="_blank">http://de.php.net/manual/en/function.uasort.php</a>
|
All times are GMT. The time now is 04:11 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|