Created
March 31, 2014 18:26
-
-
Save ezrabrook/9898927 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach ($mdarray as $key => $row) { | |
$dates[$key] = $row[0]; | |
// of course, replace 0 with whatever is the date field's index | |
} | |
array_multisort($dates, SORT_DESC, $mdarray); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment