summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordsa <dsa>2007-02-27 01:47:56 +0000
committerdsa <dsa>2007-02-27 01:47:56 +0000
commit5e32d69d99c0ce0ee000c84100f1d8cd78cce31e (patch)
tree98f0fada816b8ff5569a965ec88b81c2e93c2dd7
parent18b18eb7b0644efb7049cfc06fe781306c89fa0e (diff)
downloadaurweb-5e32d69d99c0ce0ee000c84100f1d8cd78cce31e.tar.xz
Changed the default order of comments to DESC
instead of ASC because sometimes we have to scroll a lot to reach the latest comment.
-rw-r--r--web/lib/pkgfuncs.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index 6936a08..de2f16c 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -195,7 +195,7 @@ function package_comments($pkgid=0) {
$q.= "WHERE PackageComments.UsersID = Users.ID";
$q.= " AND PackageID = ".mysql_escape_string($pkgid);
$q.= " AND DelUsersID = 0"; # only display non-deleted comments
- $q.= " ORDER BY CommentTS ASC";
+ $q.= " ORDER BY CommentTS DESC";
$result = db_query($q, $dbh);
if (!$result) {return array();}
while ($row = mysql_fetch_assoc($result)) {