From 4fe280ed41dc452cac8bf8c82c170f7b00949dc7 Mon Sep 17 00:00:00 2001 From: Vivienne Tubbs Date: Tue, 12 Dec 2023 16:02:14 +1300 Subject: [PATCH] Update sort param --- code/GraphQL/Resolvers/FolderTypeResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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