diff options
author | Yorhel <git@yorhel.nl> | 2010-11-01 17:22:36 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-11-01 17:22:36 +0100 |
commit | a36e8bf7a860a7ab069b98caefad21352c70a849 (patch) | |
tree | 55398162ed8fdc5587c25afbc0174cc393daff95 /lib/VNDB/Handler | |
parent | 0b16b689e87196807d60571726330207e689d107 (diff) |
Properly order the relations listed on producer pages
And changed the order a bit, as suggested by ImmLff.
Diffstat (limited to 'lib/VNDB/Handler')
-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 b1203dd7..bc68b88c 100644 --- a/lib/VNDB/Handler/Producers.pm +++ b/lib/VNDB/Handler/Producers.pm @@ -101,7 +101,7 @@ sub page { for (sort { $a->{name} cmp $b->{name} } @{$p->{relations}}); p class => 'center'; txt "\n"; - for my $r (sort keys %rel) { + for my $r (sort { $self->{prod_relations}{$a}[0] <=> $self->{prod_relations}{$b}[0] } keys %rel) { txt mt("_prodrel_$r").': '; for (@{$rel{$r}}) { a href => "/p$_->{id}", title => $_->{original}||$_->{name}, shorten $_->{name}, 40; |