Skip to content
This repository
Browse code

BUGFIX: Fixed sort order of files and images GridField

  • Loading branch information...
commit ca4e8e1bdb86121616f6df87cc6d2da230e11fc7 1 parent 7213d2b
Sam Minnée authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  code/controllers/AssetAdmin.php
2  code/controllers/AssetAdmin.php
@@ -90,7 +90,7 @@ public function getList() {
90 90
 		$list = $context->getResults($params);
91 91
 
92 92
 		// Always show folders at the top		
93  
-		$list->sort('(CASE WHEN "File"."ClassName" = \'Folder\' THEN 0 ELSE 1 END)');
  93
+		$list->sort('(CASE WHEN "File"."ClassName" = \'Folder\' THEN 0 ELSE 1 END), "Name"');
94 94
 
95 95
 		// If a search is conducted, check for the "current folder" limitation.
96 96
 		// Otherwise limit by the current folder as denoted by the URL.

0 notes on commit ca4e8e1

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