Skip to content

Instantly share code, notes, and snippets.

@decebal
Created September 14, 2012 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save decebal/3720107 to your computer and use it in GitHub Desktop.
Save decebal/3720107 to your computer and use it in GitHub Desktop.
Lilly
usort($result, function($a, $b){
if($a['sortkey'] == $b['sortkey']){
return 0;
}else{
return ($a['sortkey'] > $b['sortkey']) ? 1: -1;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment