diff options
author | dsa <dsa> | 2007-02-27 01:47:56 +0000 |
---|---|---|
committer | dsa <dsa> | 2007-02-27 01:47:56 +0000 |
commit | 5e32d69d99c0ce0ee000c84100f1d8cd78cce31e (patch) | |
tree | 98f0fada816b8ff5569a965ec88b81c2e93c2dd7 | |
parent | 18b18eb7b0644efb7049cfc06fe781306c89fa0e (diff) |
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.inc | 2 |
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)) { |