From 38a82677012a86169a372c3c08b3755544ef19bd Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Fri, 31 Mar 2023 20:42:00 -0400 Subject: [PATCH] Ensure sort order is provided (CO-2629) --- app/src/Model/Table/AttributesTable.php | 4 ++-- app/src/Model/Table/RuleAttributesTable.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/Model/Table/AttributesTable.php b/app/src/Model/Table/AttributesTable.php index 0160ce8d..57b5dd44 100644 --- a/app/src/Model/Table/AttributesTable.php +++ b/app/src/Model/Table/AttributesTable.php @@ -69,13 +69,13 @@ public function initialize(array $config): void { 'type' => 'select', 'model' => 'AttributeGroups', 'find' => 'filterPrimaryLink', - 'order' => 'name' + 'order' => ['name' => 'ASC'] ], 'attributeMaps' => [ 'type' => 'select', 'model' => 'AttributeMaps', 'find' => 'filterPrimaryLink', - 'order' => 'name' + 'order' => ['name' => 'ASC'] ] ]); } diff --git a/app/src/Model/Table/RuleAttributesTable.php b/app/src/Model/Table/RuleAttributesTable.php index feaaa367..03c6f828 100644 --- a/app/src/Model/Table/RuleAttributesTable.php +++ b/app/src/Model/Table/RuleAttributesTable.php @@ -71,13 +71,13 @@ public function initialize(array $config): void { 'type' => 'select', 'model' => 'Attributes', 'find' => 'filterMatchgrid', - 'order' => 'name' + 'order' => ['name' => 'ASC'] ], 'crosscheckAttributes' => [ 'type' => 'select', 'model' => 'Attributes', 'find' => 'filterMatchgrid', - 'order' => 'name' + 'order' => ['name' => 'ASC'] ], 'searchTypes' => [ 'type' => 'enum',