Skip to content
Browse files

BUGFIX: Fixed sort order of files and images GridField

  • Loading branch information...
1 parent 7213d2b commit ca4e8e1bdb86121616f6df87cc6d2da230e11fc7 @sminnee sminnee committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/controllers/AssetAdmin.php
View
2 code/controllers/AssetAdmin.php
@@ -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.

0 comments on commit ca4e8e1

Please sign in to comment.
Something went wrong with that request. Please try again.