summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-10-13 18:00:25 +0200
committerYorhel <git@yorhel.nl>2019-10-13 18:00:28 +0200
commit1719ff16a7ccd829a704fe38e7eba08dfcaa08d4 (patch)
tree6a3619eac535bb362de99840c1110fd14ec58d10 /util
parenta0c617c9e099abf8a82e43782d92f43a5eafb210 (diff)
Sort languages by name rather than tag
https://vndb.org/t950.634
Diffstat (limited to 'util')
-rwxr-xr-xutil/jsgen.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/jsgen.pl b/util/jsgen.pl
index f5178d78..bc9e75b9 100755
--- a/util/jsgen.pl
+++ b/util/jsgen.pl
@@ -37,7 +37,7 @@ sub vars {
rlist_status => [ map [ $_, $RLIST_STATUS{$_} ], keys %RLIST_STATUS ],
cookie_prefix => config->{tuwf}{cookie_prefix},
age_ratings => [ map [ $_, $AGE_RATING{$_}{txt}], keys %AGE_RATING ],
- languages => [ map [ $_, $LANGUAGE{$_} ], keys %LANGUAGE ],
+ languages => [ map [ $_, $LANGUAGE{$_} ], sort { $LANGUAGE{$a} cmp $LANGUAGE{$b} } keys %LANGUAGE ],
platforms => [ map [ $_, $PLATFORM{$_} ], keys %PLATFORM ],
char_roles => [ map [ $_, $CHAR_ROLE{$_}{txt} ], keys %CHAR_ROLE ],
media => [ map [ $_, $MEDIUM{$_}{txt}, $MEDIUM{$_}{qty} ], keys %MEDIUM ],