You are here

function apachesolr_sort_facets in Apache Solr Search 6.2

Indicates what order the specified facets should be listed in. This function is used in a usort invocation.

Parameters

$a: The first facet.

$b: The second facet.

Return value

A signed integer that indicates which of the specified facets should come first.

1 string reference to 'apachesolr_sort_facets'
apachesolr_enabled_facets_form in ./apachesolr.admin.inc
Creates the form that allows the user to select which facets will be enabled.

File

./apachesolr.admin.inc, line 264
Administrative pages for the Apache Solr framework.

Code

function apachesolr_sort_facets($a, $b) {
  return strcasecmp($a['info'], $b['info']);
}