We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e46c0d commit 5580b0cCopy full SHA for 5580b0c
app/code/Magento/Customer/Model/Resource/GroupRepository.php
@@ -193,6 +193,11 @@ public function getList(SearchCriteriaInterface $searchCriteria)
193
($sortOrder->getDirection() == SearchCriteriaInterface::SORT_ASC) ? 'ASC' : 'DESC'
194
);
195
}
196
+ } else {
197
+ // set a default sorting order since this method is used constantly in many
198
+ // different blocks
199
+ $field = $this->translateField('id');
200
+ $collection->addOrder($field, 'ASC');
201
202
$collection->setCurPage($searchCriteria->getCurrentPage());
203
$collection->setPageSize($searchCriteria->getPageSize());
0 commit comments