Skip to content

Commit c774767

Browse files
authored
Merge pull request #668 from PHPCSStandards/feature/generators-consistent-doc-order
Generators: always present docs in alphabetical order
2 parents 141ef43 + 9b4d240 commit c774767

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)