Created
March 8, 2012 10:12
-
-
Save blambi/2000117 to your computer and use it in GitHub Desktop.
fun fun fun
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($facets as $gid => $value) | |
{ | |
usort($facets[$gid]['items'], | |
function($a, $b) { | |
return strcmp($a['title'], $b['title']); | |
} | |
); | |
$facets[$gid]['items'] = array_map( function($x) { return $x['link']; }, $facets[$gid]['items']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment