summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-01-03 10:47:08 +0100
committerYorhel <git@yorhel.nl>2011-01-03 10:47:08 +0100
commit5894b1f62abbe8837067bdf34a559d78e0a5f3a5 (patch)
tree244131799444c98aa5ab27429a47f1a1318e9787 /lib
parent5e339cadbec0f2eba02b85fddcc939f3d3330ba1 (diff)
Bugfix: Secondary order by title or username on vote listings
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/DB/ULists.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/DB/ULists.pm b/lib/VNDB/DB/ULists.pm
index e6b6419a..a47e848e 100644
--- a/lib/VNDB/DB/ULists.pm
+++ b/lib/VNDB/DB/ULists.pm
@@ -218,7 +218,7 @@ sub dbVoteGet {
date => 'n.date %s',
username => 'u.username %s',
title => 'vr.title %s',
- vote => 'n.vote %s',
+ vote => 'n.vote %s'.($o{what} =~ /vn/ ? ', vr.title ASC' : $o{what} =~ /user/ ? ', u.username ASC' : ''),
}->{$o{sort}}, $o{reverse} ? 'DESC' : 'ASC';
my($r, $np) = $self->dbPage(\%o, q|