diff --git a/code/GraphQL/Resolvers/FolderTypeResolver.php b/code/GraphQL/Resolvers/FolderTypeResolver.php index 53b2c65a7..5fea9a095 100644 --- a/code/GraphQL/Resolvers/FolderTypeResolver.php +++ b/code/GraphQL/Resolvers/FolderTypeResolver.php @@ -169,7 +169,7 @@ public static function sortChildren(array $context): Closure $field, File::class ); - $dataQuery->sort($field, $dir, false); + $dataQuery->sort($normalised, $dir, false); } // respect default_sort