Skip to content

Preserve ordering of constants rather than sorting them alphabetically #1550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jcollins-g opened this issue Dec 1, 2017 · 2 comments
Open
Labels
P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug

Comments

@jcollins-g
Copy link
Contributor

Transfer from old dartdoc discussion:

"Frequently, specific parts of a class, file or library are part of a mental group. For example, in DateTime we can group JANUARY, FEBRUARY, etc. Furthermore, for some of them (like the months and weekdays) we want to keep them in a specific order."

@jcollins-g jcollins-g added type-enhancement A request for a change that isn't a bug P3 A lower priority bug or feature request labels Dec 1, 2017
@kevmoo
Copy link
Member

kevmoo commented Apr 2, 2018

This would be something to flag as an option.

In most cases, I'd argue for alphabetical sort – to ease scanning.

If a package author wants to opt-out, it should be explicit – perhaps via annotation?

@jcollins-g
Copy link
Contributor Author

Agreed. Categorization such as that proposed in #1353 might help with this too, to group related items together in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

2 participants