Skip to content

Commit f468ab7

Browse files
committed
Ruleset::explain(): use natural sorting
... for the list of included sniffs. The `SORT_NATURAL` flag is available since PHP 5.4, so can be used.
1 parent 7a733cd commit f468ab7

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);
242242

243243
ob_start();
244244

0 commit comments

Comments
 (0)