diff options
author | Yorhel <git@yorhel.nl> | 2019-10-13 18:00:25 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-10-13 18:00:28 +0200 |
commit | 1719ff16a7ccd829a704fe38e7eba08dfcaa08d4 (patch) | |
tree | 6a3619eac535bb362de99840c1110fd14ec58d10 /lib/VNDB/Handler/Producers.pm | |
parent | a0c617c9e099abf8a82e43782d92f43a5eafb210 (diff) |
Sort languages by name rather than tag
https://vndb.org/t950.634
Diffstat (limited to 'lib/VNDB/Handler/Producers.pm')
-rw-r--r-- | lib/VNDB/Handler/Producers.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Producers.pm b/lib/VNDB/Handler/Producers.pm index 72da356f..ddc992f2 100644 --- a/lib/VNDB/Handler/Producers.pm +++ b/lib/VNDB/Handler/Producers.pm @@ -341,7 +341,7 @@ sub edit { [ textarea => short => 'alias', name => 'Aliases', rows => 4 ], [ static => content => '(Un)official aliases, separated by a newline.' ], [ select => name => 'Primary language', short => 'lang', - options => [ map [ $_, "$_ ($LANGUAGE{$_})" ], keys %LANGUAGE ] ], + options => [ map [ $_, "$LANGUAGE{$_} ($_)" ], sort { $LANGUAGE{$a} cmp $LANGUAGE{$b} } keys %LANGUAGE ] ], [ input => name => 'Website', short => 'website' ], [ input => short => 'l_wikidata',name => 'Wikidata ID', value => $frm->{l_wikidata} ? "Q$frm->{l_wikidata}" : '', |