Skip to content

Commit

Permalink
NEXT-9053 - fix sorting countries
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect authored and lernhart committed Jun 4, 2020
1 parent ef686b3 commit 48a49c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions System/Country/CountryCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public function sortByPositionAndName(): void
return $a->getPosition() <=> $b->getPosition();
}

if ($a->getName() !== $b->getName()) {
return strnatcasecmp($a->getName(), $b->getName());
if ($a->getTranslation('name') !== $b->getTranslation('name')) {
return strnatcasecmp($a->getTranslation('name'), $b->getTranslation('name'));
}

return 0;
Expand Down

0 comments on commit 48a49c3

Please sign in to comment.