Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX: Fixed sort order of files and images GridField

  • Loading branch information...
commit ca4e8e1bdb86121616f6df87cc6d2da230e11fc7 1 parent 7213d2b
@sminnee sminnee authored
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.
Please sign in to comment.
Something went wrong with that request. Please try again.