From 5e32d69d99c0ce0ee000c84100f1d8cd78cce31e Mon Sep 17 00:00:00 2001 From: dsa Date: Tue, 27 Feb 2007 01:47:56 +0000 Subject: Changed the default order of comments to DESC instead of ASC because sometimes we have to scroll a lot to reach the latest comment. --- web/lib/pkgfuncs.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit v1.2.3-70-g09d2