diff options
author | Yorhel <git@yorhel.nl> | 2016-01-17 13:09:07 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2016-01-17 13:09:07 +0100 |
commit | 110db705ecdfb5c89500ff8f24652bcd1e25fc45 (patch) | |
tree | 025bda64df44f2f281148d019d43f1f747050753 /util | |
parent | 38a4c36b21b1979a64cb915a80167fb7f8cadb9e (diff) |
Use Tie::IxHash for some global.pl lists
This removes the reliance on sort() to provide meaningful ordering (the
keys aren't always good for ordering) and removes the 'order' hack used
for (vn|prod)_relations.
Diffstat (limited to 'util')
-rwxr-xr-x | util/jsgen.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/jsgen.pl b/util/jsgen.pl index 2e3b5537..412cec0e 100755 --- a/util/jsgen.pl +++ b/util/jsgen.pl @@ -123,10 +123,10 @@ sub vars { rlist_status => $S{rlist_status}, cookie_prefix => $O{cookie_prefix}, age_ratings => [ map [ $_, l10nstr($lang, $_ == -1 ? ('_unknown') : $_ == 0 ? ('_minage_all') : ('_minage_age', $_)) ], @{$S{age_ratings}} ], - languages => [ map [ $_, $S{languages}{$_} ], sort keys %{$S{languages}} ], - platforms => [ map [ $_, $S{platforms}{$_} ], sort keys %{$S{platforms}} ], + languages => [ map [ $_, $S{languages}{$_} ], keys %{$S{languages}} ], + platforms => [ map [ $_, $S{platforms}{$_} ], keys %{$S{platforms}} ], char_roles => [ map [ $_, l10nstr($lang, "_charrole_$_") ], @{$S{char_roles}} ], - media => [ map [ $_, $S{media}{$_}[1], $S{media}{$_}[0] ], sort keys %{$S{media}} ], + media => [ map [ $_, $S{media}{$_}[1], $S{media}{$_}[0] ], keys %{$S{media}} ], release_types => [ map [ $_, ucfirst $_ ], @{$S{release_types}} ], animated => [ map [ $_, $S{animated}[$_] ], 0..$#{$S{animated}} ], voiced => [ map [ $_, $S{voiced}[$_] ], 0..$#{$S{voiced}} ], |