Skip to content
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

Improve ordering of members when saved #34

Open
JimmyCushnie opened this issue Feb 2, 2021 · 0 comments
Open

Improve ordering of members when saved #34

JimmyCushnie opened this issue Feb 2, 2021 · 0 comments
Labels
feature/enhancement New feature or request

Comments

@JimmyCushnie
Copy link
Owner

Currently the order members are listed in an apparently nondeterministic order, however in my experience it is almost always the derived class members and then the base class members, in the order the members are declared in the source file.

Order of saved members should be deterministic and reliable. The simplest way would be to do it alphabetically, but I would prefer to use the following rules. I am not sure if this is possible, but it's my ideal:

  • Members are listed in order of least to most derived class
  • Members within a single class are listed in the order of their listing in the source file

And perhaps we could have an attribute on members to customize their saving order.

@JimmyCushnie JimmyCushnie added the feature/enhancement New feature or request label Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant