From: Frank Lichtenheld Date: Sun, 21 Oct 2007 23:04:35 +0000 (+0200) Subject: Always sort providers and binaries when displaying lists of them X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=a25c95422f90812abd754ce588a9fb71de3c1e7f;p=deb%2Fpackages.git Always sort providers and binaries when displaying lists of them --- diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl index 8e6bed4..8104654 100644 --- a/templates/html/search.tmpl +++ b/templates/html/search.tmpl @@ -94,7 +94,7 @@ [% END %] [% IF s.providers %]
[% IF s.versions.size > 0; g('also provided by:'); ELSE; g('provided by:'); END %] - [% FOREACH provider IN s.providers %][% provider %][% ', ' UNLESS loop.last %][% END %] + [% FOREACH provider IN s.providers.sort %][% provider %][% ', ' UNLESS loop.last %][% END %] [% END %] [% END %] @@ -110,7 +110,7 @@
  • [% origin %] ([% subsection %]): [% version %] [%- IF section %] [[% section %]][% END %] [%- IF real_archive %] [[% real_archive %]][% END %] -
    [% g('Binary packages:') %] [% FOREACH binary IN binaries %][% binary %][% ', ' UNLESS loop.last %][% END %] +
    [% g('Binary packages:') %] [% FOREACH binary IN binaries.sort %][% binary %][% ', ' UNLESS loop.last %][% END %] [% IF binaries.size > 10 %] [% END %] diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 0c27c00..2221593 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -247,7 +247,7 @@ g('virtual package provided by'); END; %] [% js_id = name %] - [% FOREACH provider IN providers.pkgs %][% provider %][% ', ' UNLESS loop.last %][% END %] + [% FOREACH provider IN providers.pkgs.sort %][% provider %][% ', ' UNLESS loop.last %][% END %] [% IF providers.pkgs.size > 10 %] [% END %]