mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX: Fixed sort order of files and images GridField
This commit is contained in:
parent
7213d2b7dc
commit
ca4e8e1bdb
@ -90,7 +90,7 @@ JS
|
|||||||
$list = $context->getResults($params);
|
$list = $context->getResults($params);
|
||||||
|
|
||||||
// Always show folders at the top
|
// Always show folders at the top
|
||||||
$list->sort('(CASE WHEN "File"."ClassName" = \'Folder\' THEN 0 ELSE 1 END)');
|
$list->sort('(CASE WHEN "File"."ClassName" = \'Folder\' THEN 0 ELSE 1 END), "Name"');
|
||||||
|
|
||||||
// If a search is conducted, check for the "current folder" limitation.
|
// If a search is conducted, check for the "current folder" limitation.
|
||||||
// Otherwise limit by the current folder as denoted by the URL.
|
// Otherwise limit by the current folder as denoted by the URL.
|
||||||
|
Loading…
Reference in New Issue
Block a user