summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-03-02 13:27:29 +0100
committerYorhel <git@yorhel.nl>2021-03-02 13:27:29 +0100
commita38b2fadcac269057cb08e4367d28819cc300413 (patch)
treebd5b1d8c100e65b5a6a1cfdf469bf5c979688118
parentce9cd4c6418a196c1c327ecd44933296257b8004 (diff)
VN::Page: Also prioritize original language in publisher listing
Fixes https://vndb.org/t2520.545 This prioritization ignores release dates, so original language is always displayed first.
-rw-r--r--lib/VNWeb/VN/Page.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNWeb/VN/Page.pm b/lib/VNWeb/VN/Page.pm
index cdf096fd..c7972923 100644
--- a/lib/VNWeb/VN/Page.pm
+++ b/lib/VNWeb/VN/Page.pm
@@ -186,10 +186,11 @@ sub infobox_producers_ {
tr_ sub {
td_ 'Publishers';
td_ sub {
+ use sort 'stable';
join_ \&br_, sub {
abbr_ class => "icons lang $_", title => $LANGUAGE{$_}, '';
join_ ' & ', sub { a_ href => "/$_->{id}", $_->{official} ? () : (class => 'grayedout'), title => $_->{original}||$_->{name}, $_->{name} }, $lang{$_}->@*;
- }, @lang;
+ }, sort { ($b eq $v->{olang}) cmp ($a eq $v->{olang}) } @lang;
}
} if keys %lang;
}