issue124, also if rate-sort is set to DESC, 2nd-sort by photo-name should be ASC
[phpfspot.git] / phpfspot.class.php
index 39bace3f0ec99210183219e1d3d5c0c86f5c6814..d39356a3bde197d09a427d24f18e663cf493b1c6 100644 (file)
@@ -2748,7 +2748,7 @@ class PHPFSPOT {
             return " ORDER BY p.rating ASC, t.name ASC";
             break;
          case 'rate_desc':
             return " ORDER BY p.rating ASC, t.name ASC";
             break;
          case 'rate_desc':
-            return " ORDER BY p.rating DESC, t.name DESC";
+            return " ORDER BY p.rating DESC, t.name ASC";
             break;
       }
 
             break;
       }