Skip to content

Commit

Permalink
BUGFIX: Fixed sort order of files and images GridField
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Minnee committed Apr 11, 2012
1 parent 7213d2b commit ca4e8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/controllers/AssetAdmin.php
Expand Up @@ -90,7 +90,7 @@ public function getList() {
$list = $context->getResults($params);

// 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.
// Otherwise limit by the current folder as denoted by the URL.
Expand Down

0 comments on commit ca4e8e1

Please sign in to comment.