protected function FacetapiFacet::_sort in Facet API 6
Sorts the facet's build array.
Parameters
&$build: An array containing the render array.
1 call to FacetapiFacet::_sort()
- FacetapiFacet::build in ./
facetapi.adapter.inc - Returns the facet's render array.
File
- ./
facetapi.adapter.inc, line 636 - Defines classes used by the FacetAPI module.
Class
- FacetapiFacet
- Stores facet data, provides methods that build the facet's render array.
Code
protected function _sort(&$build) {
foreach (element_children($build) as $value) {
if (!empty($build[$value]['#item_children'])) {
$this
->_sort($build[$value]['#item_children']);
}
}
uasort($build, array(
$this,
'_sortCallback',
));
}