Created
June 16, 2011 00:38
-
-
Save duellsy/1028472 to your computer and use it in GitHub Desktop.
custom sort
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
function sortbydate($a,$b){ | |
if($a['date']>$b['date']) | |
return 1; | |
else if($a['date']<$b['date']) | |
return -1; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for custom sorting in php