[Debtags-commits] [svn] r1465 - central-database/branches/alioth/webfrontend

Enrico Zini enrico at costa.debian.org
Mon Oct 31 22:56:23 UTC 2005


Author: enrico
Date: Mon Oct 31 22:56:23 2005
New Revision: 1465

Modified:
   central-database/branches/alioth/webfrontend/index.cgi
Log:
Sort tags in the navigational view

Modified: central-database/branches/alioth/webfrontend/index.cgi
==============================================================================
--- central-database/branches/alioth/webfrontend/index.cgi	(original)
+++ central-database/branches/alioth/webfrontend/index.cgi	Mon Oct 31 22:56:23 2005
@@ -162,14 +162,13 @@
 				};
 			}
 		}
-		
 	}
 	push @ht_facets, {
 		NAME => $f->name,
 		SDESC => $f->sdesc,
 		LDESC => $f->ldesc,
-		SEEN => \@seen_tags,
-		TAGS => \@tags,
+		SEEN => [ sort { $a->{NAME} cmp $b->{NAME} } @seen_tags ],
+		TAGS => [ sort { $a->{NAME} cmp $b->{NAME} } @tags ],
 		COUNT => $facet_counts{$f->name},
 		SELCOUNT => scalar(@seen_tags),
 		UNSCOUNT => scalar(@tags),



More information about the Debtags-commits mailing list