mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Default sort for tags / categories
This commit is contained in:
parent
5ef99a76a9
commit
1ba72c74ce
@ -53,6 +53,11 @@ class BlogCategory extends DataObject implements CategorisationObject
|
||||
'BlogPosts' => BlogPost::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private static $default_sort = '"BlogCategory"."Title" ASC';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
@ -56,6 +56,11 @@ class BlogTag extends DataObject implements CategorisationObject
|
||||
'BlogPosts' => BlogPost::class
|
||||
];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private static $default_sort = '"BlogTag"."Title" ASC';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user