Skip to content

Commit

Permalink
Merge pull request #668 from PHPCSStandards/feature/generators-consis…
Browse files Browse the repository at this point in the history
…tent-doc-order

Generators: always present docs in alphabetical order
  • Loading branch information
jrfnl authored Nov 12, 2024
2 parents 141ef43 + 9b4d240 commit c774767
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Generators/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public function __construct(Ruleset $ruleset)
}
}

// Always present the docs in a consistent alphabetical order.
sort($this->docFiles, (SORT_NATURAL | SORT_FLAG_CASE));

}//end __construct()


Expand Down

0 comments on commit c774767

Please sign in to comment.