sort ip lists properly

git-svn-id: file:///home/shish/svn/shimmie2/trunk@358 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-07-23 13:51:41 +00:00
parent 6e02af258d
commit fe28f1abff

View file

@ -283,7 +283,7 @@ class UserPage extends Extension {
FROM images
WHERE owner_id=?
GROUP BY owner_ip
ORDER BY posted DESC", array($duser->id));
ORDER BY MAX(posted) DESC", array($duser->id));
return $rows;
}
private function count_comment_ips($duser) {
@ -293,7 +293,7 @@ class UserPage extends Extension {
FROM comments
WHERE owner_id=?
GROUP BY owner_ip
ORDER BY posted DESC", array($duser->id));
ORDER BY MAX(posted) DESC", array($duser->id));
return $rows;
}
// }}}