You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Struct fields are stored in a BTreeMap in schema properties, this sorts them alphabetically.
But, often, at least in my projects, struct fields order has some semantic meaning (e.g. in one project I have a Span struct with start and end fields, and others; it makes sense to have those two fields one after the other, and in this order).
I think it would make more sense in general to keep the fields order (if you want them alphabetically sorted, you'll probably sort them in your struct anyway?).
The text was updated successfully, but these errors were encountered:
Sufflope
added a commit
to Sufflope/paperclip
that referenced
this issue
Sep 18, 2024
Struct fields are stored in a BTreeMap in schema properties, this sorts them alphabetically.
But, often, at least in my projects, struct fields order has some semantic meaning (e.g. in one project I have a Span struct with
start
andend
fields, and others; it makes sense to have those two fields one after the other, and in this order).I think it would make more sense in general to keep the fields order (if you want them alphabetically sorted, you'll probably sort them in your struct anyway?).
The text was updated successfully, but these errors were encountered: