You are here

function _apachesolr_sort_facets in Apache Solr Search 5.2

Same name and namespace in other branches
  1. 6 apachesolr.admin.inc \_apachesolr_sort_facets()

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 213
Administrative pages for the Apache Solr framework.

Code

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