From 3a9f329a964159cf7536560f4bf4f6658cf3cd5b Mon Sep 17 00:00:00 2001 From: Julian Seidenberg Date: Tue, 9 Oct 2012 17:39:59 +1300 Subject: [PATCH] BUGFIX: adding default sort --- code/DMSDocument.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/DMSDocument.php b/code/DMSDocument.php index 2abf1ab..bc6acfb 100644 --- a/code/DMSDocument.php +++ b/code/DMSDocument.php @@ -32,6 +32,11 @@ class DMSDocument extends DataObject implements DMSDocumentInterface { 'LastChanged'=>'LastChanged' ); + static $default_sort = array( + 'DocumentSort ASC' + ); + + static $singular_name = 'Document'; static $plural_name = 'Documents';