nodejs.org icon indicating copy to clipboard operation
nodejs.org copied to clipboard

Enforce methods alphabetical sorting

Open araujogui opened this issue 8 months ago • 2 comments

Ensure methods within a module are listed in strict alphabetical order.

Related to https://github.com/nodejs/node/issues/58402

araujogui avatar May 22 '25 14:05 araujogui

It's worth noting that a module's documentation doesn't just contain its methods.

Consider, e.g., the documentation for process:
It starts with the module's events (which are alphabetized).
After the events, we have the module's members (some of which are functions, some are just properties), which are alphabetized (or, at least, would be after a version containing https://github.com/nodejs/node/issues/58402's fix is deployed)
After all the properties, there's a paragraph about exit codes.

Presumably, the proposed enhancement is to sort the items within each category, right?

mureinik avatar May 22 '25 18:05 mureinik

(For remark-lint)

avivkeller avatar Oct 12 '25 15:10 avivkeller