-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Set default $currentOrder
in Sort
class
#212
Comments
How to understand which order is default? |
Usually it's in ascending order. |
Order in |
By default sort by all fields in ascending order |
For set default order we should select field also, not only direction. How we can understand which field should use by default? For example, configuration: |
If we use |
Makes sense. |
$currentOrder
can be set to default value after normalizing config.data/src/Reader/Sort.php
Lines 114 to 126 in 15ddd6e
This will help avoid an exception if
$currentOrder
is not set manually.data/src/Paginator/KeysetPaginator.php
Lines 444 to 446 in 15ddd6e
The text was updated successfully, but these errors were encountered: