summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--lib/VNDB/Handler/ULists.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 65a0a89a..b62057f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -21,6 +21,7 @@ git - ?
- Optimized dbUserGet (mostly for the user list)
- All languages are listed on /r and /v/all instead of only those in use
- Copy over search query when switching search type (htmlSearchBox)
+ - Fixed obscure sorting bug on user VN list
2.7 - 2009-09-24
- Improved styling of the threeboxes layout
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}) : (),
);