Skip to content

Commit

Permalink
Generators: always present docs in alphabetical order
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrfnl committed Nov 11, 2024
1 parent 141ef43 commit 9b4d240
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 9b4d240

Please sign in to comment.