Skip to content

Instantly share code, notes, and snippets.

@duellsy
Created June 16, 2011 00:38
Show Gist options
  • Save duellsy/1028472 to your computer and use it in GitHub Desktop.
Save duellsy/1028472 to your computer and use it in GitHub Desktop.
custom sort
function sortbydate($a,$b){
if($a['date']>$b['date'])
return 1;
else if($a['date']<$b['date'])
return -1;
return 0;
}
@duellsy
Copy link
Author

duellsy commented Jun 16, 2011

for custom sorting in php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment