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.
2 parents 18a7e29 + 727709b commit 3994ae1Copy full SHA for 3994ae1
app/code/Magento/Customer/Block/Account/Navigation.php
@@ -46,6 +46,10 @@ public function getLinks()
46
*/
47
private function compare(SortLinkInterface $firstLink, SortLinkInterface $secondLink)
48
{
49
- return ($firstLink->getSortOrder() < $secondLink->getSortOrder());
+ if ($firstLink->getSortOrder() == $secondLink->getSortOrder()) {
50
+ return 0;
51
+ }
52
+
53
+ return ($firstLink->getSortOrder() < $secondLink->getSortOrder()) ? 1 : -1;
54
}
55
0 commit comments