Load Sort
#2833
Replies: 2 comments
-
|
yes it sorts by the entity's primary key by default. right now it's not possible to customize the sort order of related entities, but if you can think of a good API it can be added. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I'll try sorting them manually first, haha. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How does Sea ORM load ModelEx to sort data?
challenge::Entity::load()
.with((step::Entity, video::Entity))
.with(tag::Entity);
I have data in the format of challenge -> step <-> step_video <-> video, but it's sorting by video ID, not step_video.
Beta Was this translation helpful? Give feedback.
All reactions