Skip to content

Commit 72ca610

Browse files
Fixed the return value from the usort custom sort function The return value from the function now lines up with the PHP documentation for the usort comparator function
1 parent 18a7e29 commit 72ca610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Block/Account/Navigation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public function getLinks()
4646
*/
4747
private function compare(SortLinkInterface $firstLink, SortLinkInterface $secondLink)
4848
{
49-
return ($firstLink->getSortOrder() < $secondLink->getSortOrder());
49+
return ($firstLink->getSortOrder() < $secondLink->getSortOrder()) ? -1 : 1;
5050
}
5151
}

0 commit comments

Comments
 (0)