-
Notifications
You must be signed in to change notification settings - Fork 61
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
fix(SortPlugin): amend sorting to all fields #541
Conversation
Thank you for this. This feels like something which ought to be tested. Could you please add a unit test to validate the sort args are being correctly applied? |
is an existing unit test for this plugin I can start writing the tests on? I'm not familiar enough with the test setup to jump right in |
Looks like |
dc6d128
to
978ad1a
Compare
978ad1a
to
47811b8
Compare
@GuySartorelli test added, the diff looks a bit weird because I needed to tweak the other tests to accomodate to a third row added to the db |
Looks good, thank you! |
Fix sorting to all fields in the args.
This is because in framework
DataList
each call to->sort()
actually resets previous sorts made, and the result is that only the end sort happens.Issue
SortPlugin
only sorts based on the last field in the sort array, rather than cascading sort based on all sort fields. #542