diff options
author | Yorhel <git@yorhel.nl> | 2009-10-17 14:20:06 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-10-17 14:32:24 +0200 |
commit | e7e53553cb42824b7360ebbc15bb86aaa015c677 (patch) | |
tree | 1bd797552e6d1fe8d165e568dc3e1fad5cbf53e3 /lib/VNDB/Handler | |
parent | c816a8a462e925f8ef8133241c29d5d53afdce64 (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')
-rw-r--r-- | lib/VNDB/Handler/ULists.pm | 2 |
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}) : (), ); |