summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/ULists.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-04-04 13:03:26 +0200
committerYorhel <git@yorhel.nl>2009-04-04 13:03:26 +0200
commitde966020940c1b77d99d4c33f0b57688eb1246d8 (patch)
tree9f6a107ade68a432ab2a4da736b98da72c640d66 /lib/VNDB/Handler/ULists.pm
parenta5a6ccec165c9cf34a967596922c5574afa4fe51 (diff)
Corrected priority ordering on user wishlist
<ImmLff> 2) sort by priority function in the wishlist is reversed, at least it seems so to me; currently when you click "▾" it sorts titles from Low to High, and when you click "▴" - first High they Low
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 8f2091db..566a881c 100644
--- a/lib/VNDB/Handler/ULists.pm
+++ b/lib/VNDB/Handler/ULists.pm
@@ -122,7 +122,7 @@ sub wishlist {
my($list, $np) = $self->dbWishListGet(
uid => $uid,
- order => $f->{s}.' '.($f->{o} eq 'a' ? 'ASC' : 'DESC'),
+ order => $f->{s}.' '.($f->{o} eq 'a' ? ($f->{s} eq 'wstat' ? 'DESC' : 'ASC' ) : ($f->{s} eq 'wstat' ? 'ASC' : 'DESC')),
$f->{f} != -1 ? (wstat => $f->{f}) : (),
what => 'vn',
results => 50,