◐ Shell
clean mode source ↗

doc: fix Incorrect order in util.parseArgs history by bleakprestiger · Pull Request #45726 · nodejs/node

The original issue is the result of the sorting done here

meta.changes.sort((a, b) => versionSort(a.version, b.version));

The versions in the meta.changes array are

['v18.11.0', ['v18.7.0', 'v16.17.0'], 'v18.3.0']

and versionSort() uses the min version ('v16.17.0'), so the array is sorted as follows:

['v18.11.0', 'v18.3.0', ['v18.7.0', 'v16.17.0']]