cesarParra / apexdocs

Node.js tool to generate documentation for your Salesforce Apex Classes.
https://www.npmjs.com/package/@cparra/apexdocs
MIT License
101 stars 18 forks source link

Sort Class methods alphabetically #109

Closed ReiSuzuki closed 2 months ago

ReiSuzuki commented 2 months ago

Is there a way to sort all the methods in an apex class alphabetically? This would be useful in some of the classes that have methods that are not alphabetical in the code itself.

cesarParra commented 2 months ago

I've released a prototype of this in beta 2.23.0.

A new argument flag can be provided (either when running the tool through the CLI or through a config file) called sortMembersAlphabetically to achieve the desired outcome.

I'll be releasing to GA by end of week if it looks good or if there's no feedback.

ReiSuzuki commented 2 months ago

Excellent, will give this a try. Thanks!

cesarParra commented 2 months ago

Added in https://github.com/cesarParra/apexdocs/releases/tag/v2.23.0