Sort enum types?
Union ordering in TypeScript changes between versions and has no guarantee. Usually this is fine, but since react-docgen-typescript is often used for visual display it seems more important. E.g. something like 1 | 2 | 3 | 4 | 5 | 6 could be outputted something like 1 | 6 | 2 | 3 | 4 | 5, which looks strange.
Does it seem feasible to parse and sort unions?
There was no activity for a long time. Closing this issue as obsolete. In case it is still valid, please, open a new one.
Closing this issue as obsolete.
@pvasek could this be reopened please? I'm getting complaints from users about union types being oddly sorted because of this same issue and would love to see it fixed.
There was no activity for a long time. The issue will be closed soon.
Closing this issue as obsolete.
Opened a pull request for this functionality here: https://github.com/styleguidist/react-docgen-typescript/pull/503