From: Andreas Unterkircher Date: Sat, 7 Jun 2008 15:18:49 +0000 (+0200) Subject: issue124, fix sort-order problem when sort by rating X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18efe997591ff832cd25c7008d4fab87c694242b;p=phpfspot.git issue124, fix sort-order problem when sort by rating Signed-off-by: Andreas Unterkircher --- 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; }