8000 sort alphabetically of they are the same length · symfony/symfony@892155b · GitHub
[go: up one dir, main page]

Skip to content

Commit 892155b

Browse files
committed
sort alphabetically of they are the same length
1 parent 20b5b8c commit 892155b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/get-modified-packages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
// Sort to get the longest name first (match bridge not component)
1616
usort($allPackages, function($a, $b) {
17-
return strlen($b) - strlen($a);
17+
return strlen($b) <=> strlen($a) ?: $a <=> $b;
1818
});
1919

2020
function isComponentBridge(string $packageDir): bool

0 commit comments

Comments
 (0)
0