summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-06-07 17:18:49 +0200
committerAndreas Unterkircher <unki@netshadow.at>2008-06-07 17:25:18 +0200
commit18efe997591ff832cd25c7008d4fab87c694242b (patch)
treebc5fe11cfb1ff85902e9c0b9e385de31d7514a62 /phpfspot.class.php
parentf76719f49b8aa3d8faa89ce415f580b08fa6da7b (diff)
issue124, fix sort-order problem when sort by rating
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 2b5e180..107ce4c 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -2722,10 +2722,10 @@ class PHPFSPOT {
return " ORDER BY t.name DESC ,p.time ASC";
break;
case 'rate_asc':
- return " ORDER BY t.name ASC, p.rating ASC";
+ return " ORDER BY p.rating ASC, t.name ASC";
break;
case 'rate_desc':
- return " ORDER BY t.name DESC, p.rating DESC";
+ return " ORDER BY p.rating DESC, t.name DESC";
break;
}