From dbd6f8f6de86841c7dd5e4474fbba0cbb337f8ab Mon Sep 17 00:00:00 2001 From: Simon Green Date: Wed, 2 Jul 2014 10:57:56 +1000 Subject: Bug 1020821 - Product drop down orders classifications alphabetically r=gkl, a=glob --- template/en/default/global/product-select.html.tmpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'template/en/default/global') diff --git a/template/en/default/global/product-select.html.tmpl b/template/en/default/global/product-select.html.tmpl index ba5ce73b4..23a7b3d58 100644 --- a/template/en/default/global/product-select.html.tmpl +++ b/template/en/default/global/product-select.html.tmpl @@ -63,8 +63,10 @@ [% END %] [% END %] [% END %] - [% FOREACH c = classifications.keys.sort %] - + + [% FOREACH c = all_classifications %] + [% NEXT UNLESS classifications.${c}.size %] + [% FOREACH p = classifications.$c %]