projects
/
phpfspot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f76719f
)
issue124, fix sort-order problem when sort by rating
author
Andreas Unterkircher
<unki@netshadow.at>
Sat, 7 Jun 2008 15:18:49 +0000
(17:18 +0200)
committer
Andreas Unterkircher
<unki@netshadow.at>
Sat, 7 Jun 2008 15:25:18 +0000
(17:25 +0200)
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
phpfspot.class.php
patch
|
blob
|
history
diff --git
a/phpfspot.class.php
b/phpfspot.class.php
index 2b5e180d4a985fa077c61e1bbefe759cee01523a..107ce4ce034f9cae517211923a4480a23e91716b 100644
(file)
--- 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;
}