From f9da475a6ffd1e9207e23ca06205cee95a3fac97 Mon Sep 17 00:00:00 2001 From: Rune Schjellerup Philosof Date: Mon, 18 Feb 2013 15:25:10 +0100 Subject: [PATCH] Don't sort the years ascending. It makes more sense to have the newest years first instead of having the user scroll down the page to find the newest. Also, it avoids wasting time on unnecessary sorting. --- ding_periodical.field.inc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ding_periodical.field.inc b/ding_periodical.field.inc index 337462d..1deb719 100644 --- a/ding_periodical.field.inc +++ b/ding_periodical.field.inc @@ -72,13 +72,6 @@ function ding_periodical_field_formatter_view($entity_type, $entity, $field, $in $availability = ding_provider_invoke('availability', 'holdings', array($entity->provider_id)); if (isset($availability[$entity->provider_id])) { $issues = $availability[$entity->provider_id]['issues']; - // array_walk($issues, 'asort') complains about 'Notice: A non - // well formed numeric value encountered'. - foreach ($issues as $k => $v) { - asort($v); - } - ksort($issues); - if ($issues) { $element[$delta] = array( '#theme' => 'ding_periodical_issues',