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
This commit is contained in:
Sam Minnee 2010-10-13 04:19:12 +00:00
parent 1c48ef7b61
commit 8b6536aa68

View File

@ -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'