note 44181 deleted from function.array-multisort by aidan

From: Date: Sun, 03 Oct 2004 10:38:47 +0000
Subject: note 44181 deleted from function.array-multisort by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77790@lists.php.net to get a copy of this message
Note Submitter: Rachel ---- In reply to the post: "The original post is correct... not the second post on this code: The code from If you have an array that contains output from a SQL SELECT statment and you want to sort the array on a column, you have to create a separate array containing the values of that column like so:........" My array is organized in such a matter: array[0][0]=teammember1 [0][1]=teammember2 [0][2]=total_points array[1][0]=teammember1 [1][1]=teammember2 [1][2]=total_points etc. I wanted to sort by total_points. FYI, I could not get the original post code to work, but the modified one works for me, with the line: "array_multisort($sortarray,$rows);"

« previous php.notes (#77790) next »