Skip to content

Commit d1f49be

Browse files
committed
Ruleset::explain(): use natural sorting
... for the list of included sniffs. The `SORT_NATURAL` and the `SORT_FLAG_CASE` flag are available since PHP 5.4, so can be used without issue.
1 parent b0d171b commit d1f49be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ruleset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function __construct(Config $config)
238238
public function explain()
239239
{
240240
$sniffs = array_keys($this->sniffCodes);
241-
sort($sniffs);
241+
sort($sniffs, (SORT_NATURAL | SORT_FLAG_CASE));
242242

243243
ob_start();
244244

0 commit comments

Comments
 (0)