Re: Array Sorting
| From: | Stut | Date: | Thu, 04 May 2006 15:23:49 +0000 |
| Subject: | Re: Array Sorting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235520@lists.php.net to get a copy of this message | ||
James Nunnerley wrote:
I've got an array which has the following properties: $file_array[$filename] = array ("Date" => $Date, "size" => $size, "permissions" => $permissions); I can quite happily sort the array by filename (using natksort and natkrsort), which I found on the php manual - and for reference have included as a PS!!!! What I'm not sure about doing is sorting by say Size or Date? I've again had a look through the php manual but I'm not sure how to sort by a property... Can anyone point me in a direction?http://php.net/usort <-- it be thataway! -Stut PS. Please start a new thread instead of just replying to someone elses and changing the subject - it screws up the threading in decent email clients.