function facetapi_sort_display in Facet API 6.3
Same name and namespace in other branches
- 6 facetapi.adapter.inc \facetapi_sort_display()
- 7.2 plugins/facetapi/widget.inc \facetapi_sort_display()
- 7 plugins/facetapi/widget.inc \facetapi_sort_display()
Sorts by display value.
1 string reference to 'facetapi_sort_display'
- facetapi_facetapi_sort_info in ./
facetapi.facetapi.inc - Implements hook_facetapi_sort_info().
File
- plugins/
facetapi/ widget.inc, line 293 - Abstract widget plugin class.
Code
function facetapi_sort_display(array $a, array $b) {
$a_count = isset($a['#value']) ? $a['#value'] : '';
$b_count = isset($b['#value']) ? $b['#value'] : '';
return strcasecmp($a['#value'], $b['#value']);
}