You are here

function facetapi_sort_display in Facet API 6

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/widget.inc \facetapi_sort_display()
  2. 7.2 plugins/facetapi/widget.inc \facetapi_sort_display()
  3. 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.module
Implementation of hook_facetapi_sort_info().

File

./facetapi.adapter.inc, line 781
Defines classes used by the FacetAPI module.

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']);
}