JimmyCushnie / JECS

Jimmy's Epic Config System
Do What The F*ck You Want To Public License
154 stars 16 forks source link

Improve ordering of members when saved #34

Open JimmyCushnie opened 3 years ago

JimmyCushnie commented 3 years ago

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:

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