summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc
diff options
context:
space:
mode:
authordsa <dsa>2007-02-27 02:47:56 +0100
committerdsa <dsa>2007-02-27 02:47:56 +0100
commit5e32d69d99c0ce0ee000c84100f1d8cd78cce31e (patch)
tree98f0fada816b8ff5569a965ec88b81c2e93c2dd7 /web/lib/pkgfuncs.inc
parent18b18eb7b0644efb7049cfc06fe781306c89fa0e (diff)
downloadaur-5e32d69d99c0ce0ee000c84100f1d8cd78cce31e.tar.gz
aur-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.
Diffstat (limited to 'web/lib/pkgfuncs.inc')
-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 6936a08d..de2f16cc 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)) {