sorting 2-D array by sub-array

From: Date: Fri, 21 Apr 2000 20:55:52 +0000
Subject: sorting 2-D array by sub-array
Groups: php.dev 
Request: Send a blank email to php-dev+get-18120@lists.php.net to get a copy of this message
I'm not sure if what I need to do is possible or not.. I have a two-dimensional array. I need to apply the rsort() function to the nested array ($votes) in order for the array to be sorted by largest number to smallest keeping in mind that both, $names and $votes need to stay in relation in order for the amount of votes to be assigned to the proper name. $totals[$names[$votes]] Please help.

« previous php.dev (#18120) next »