From 8b6536aa68781ffbfff2e13f7175e613339ab233 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 13 Oct 2010 04:19:12 +0000 Subject: [PATCH] MINOR: sort page comment table by Created field - show newest entries first (from r103558) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112172 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CommentAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/CommentAdmin.php b/code/CommentAdmin.php index 9f5b6467..17ea6a4f 100644 --- a/code/CommentAdmin.php +++ b/code/CommentAdmin.php @@ -83,7 +83,7 @@ class CommentAdmin extends LeftAndMain { ); $idField = new HiddenField('ID', '', $section); - $table = new CommentTableField($this, "Comments", "PageComment", $section, $tableFields, $popupFields, array($filter)); + $table = new CommentTableField($this, "Comments", "PageComment", $section, $tableFields, $popupFields, array($filter), 'Created DESC'); $table->setParentClass(false); $table->setFieldCasting(array( 'Created' => 'SSDatetime->Full'