Skip to content

Commit 9b4d240

Browse files
committed
Generators: always present docs in alphabetical order
As things were, the order in which sniff documentation was presented was dependent on the file system the sniffs were found on. Fixed now by making the order logical and consistent.
1 parent 141ef43 commit 9b4d240

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Generators/Generator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ public function __construct(Ruleset $ruleset)
6060
}
6161
}
6262

63+
// Always present the docs in a consistent alphabetical order.
64+
sort($this->docFiles, (SORT_NATURAL | SORT_FLAG_CASE));
65+
6366
}//end __construct()
6467

6568

0 commit comments

Comments
 (0)