Default sort for tags / categories

This commit is contained in:
Damian Mooyman 2019-10-25 11:40:02 +13:00
parent 5ef99a76a9
commit 1ba72c74ce
No known key found for this signature in database
GPG Key ID: 19B1752E86A700BB
2 changed files with 10 additions and 0 deletions

View File

@ -53,6 +53,11 @@ class BlogCategory extends DataObject implements CategorisationObject
'BlogPosts' => BlogPost::class, 'BlogPosts' => BlogPost::class,
]; ];
/**
* @var string
*/
private static $default_sort = '"BlogCategory"."Title" ASC';
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */

View File

@ -56,6 +56,11 @@ class BlogTag extends DataObject implements CategorisationObject
'BlogPosts' => BlogPost::class 'BlogPosts' => BlogPost::class
]; ];
/**
* @var string
*/
private static $default_sort = '"BlogTag"."Title" ASC';
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */