Skip to content

Commit e81eefc

Browse files
committed
[fix] GraphQl relevant missmatch while perform searching on graphql
1 parent c4a65db commit e81eefc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugin/DataProvider/Product/SearchCriteriaBuilder/AddDefaultOrders.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function afterBuild(
5252
->setDirection(SortOrder::SORT_DESC)
5353
->create();
5454

55-
array_splice($sortOrders, -1, 0, [$sortOrder]);
55+
array_unshift($sortOrders, $sortOrder);
5656

5757
$searchCriteria->setSortOrders($sortOrders);
5858

0 commit comments

Comments
 (0)