From e62f40c7b98f0740a7984a069b0a9dde148ea124 Mon Sep 17 00:00:00 2001 From: yusuf amer Date: Mon, 4 Mar 2013 15:13:41 +0100 Subject: [PATCH] Sort material types alphabetically for extended search. --- ting.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ting.module b/ting.module index 2aadba2..5a0fe5b 100644 --- a/ting.module +++ b/ting.module @@ -884,7 +884,8 @@ function _ting_fetch_well_types() { foreach ($result->facets['facet.type']->terms as $term => $count) { $types[drupal_strtolower($term)] = $count; } - + // Sort material types alphabetically. + ksort($types); // Only save if we actually got any types. if (!empty($types)) { variable_set('ting_well_types', $types);