summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/ULists.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-10-17 14:20:06 +0200
committerYorhel <git@yorhel.nl>2009-10-17 14:32:24 +0200
commite7e53553cb42824b7360ebbc15bb86aaa015c677 (patch)
tree1bd797552e6d1fe8d165e568dc3e1fad5cbf53e3 /lib/VNDB/Handler/ULists.pm
parentc816a8a462e925f8ef8133241c29d5d53afdce64 (diff)
Handler::ULists: Add secundary order by title when ordered by vote
This fixes a strange issue that the ordering changes when browsing to the next page, resulting in some VNs not showing up at all.
Diffstat (limited to 'lib/VNDB/Handler/ULists.pm')
-rw-r--r--lib/VNDB/Handler/ULists.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/ULists.pm b/lib/VNDB/Handler/ULists.pm
index 19db9f1e..6a0d6c9e 100644
--- a/lib/VNDB/Handler/ULists.pm
+++ b/lib/VNDB/Handler/ULists.pm
@@ -229,7 +229,7 @@ sub vnlist {
uid => $uid,
results => 50,
page => $f->{p},
- order => $f->{s}.' '.($f->{o} eq 'd' ? 'DESC' : 'ASC'),
+ order => $f->{s}.' '.($f->{o} eq 'd' ? 'DESC' : 'ASC').($f->{s} eq 'vote' ? ', title ASC' : ''),
voted => $f->{v},
$f->{c} ne 'all' ? (char => $f->{c}) : (),
);