Skip to content

Commit

Permalink
[REFACTOR] Add Domain\HostName\Variants, Order Alphabetically As Fall…
Browse files Browse the repository at this point in the history
…back

(cherry picked from commit e929272)
  • Loading branch information
ThomasWeinert committed Apr 28, 2020
1 parent 72af474 commit 05afc6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/Papaya/Domain/HostName/Variants.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function createVariants($hostName) {
$hostNames,
static function($a, $b) {
if (strlen($a) === strlen($b)) {
return 0;
return strcmp($b, $a);
}
return strlen($a) > strlen($b) ? -1 : 1;
}
Expand Down

0 comments on commit 05afc6c

Please sign in to comment.