-
-
Notifications
You must be signed in to change notification settings - Fork 524
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
Alphabetical order generating with sea-orm-cli
#1223
Comments
That's right. Non-determinism is sometimes annoying. I am mostly sure this is due to the pseudo-random nature of HashMap. The solution usually is to replace all HashMap with BTreeMap and so it will order naturally by the key. |
Hey @frederikhors, thanks for the report!! I'll dig into it :) |
1 task
Hey @frederikhors, please check #1229 |
I think it should work. I cannot try it right now. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Using
sea-orm-cli
to generate entities I found out that the order of relations is random, not alphabetical.Expected Behavior
I would like it to be alphabetical.
Actual Behavior
Sometimes it generates:
Sometimes instead:
Reproduces How Often
Yeah
Versions
The text was updated successfully, but these errors were encountered: