-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Relationship result sorting #4858
Conversation
Codecov Report
@@ Coverage Diff @@
## 1.4 #4858 +/- ##
============================================
- Coverage 63.00% 62.93% -0.07%
- Complexity 1370 1373 +3
============================================
Files 194 194
Lines 3992 3996 +4
============================================
Hits 2515 2515
- Misses 1477 1481 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ordering works fine
docs/bread/relationships.md
Outdated
} | ||
``` | ||
|
||
This will sort the results ascending by the field `my_field`. Use `desc` as the direction to sort it in the opposite order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If setting desc
in the example this can be changed as:
This will sort the results descending by the field `my_field`. Default value for direction is `asc`.
You can add Closes #3617 |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Not sure if we need to specify that HasMany relationships won't be ordered.
This allows relationship results to be sorted by defining the following in the options:
Fixes #3617