Skip to content
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

Sorting With Secondary Column #180

Open
swarrenwecareconnectorg opened this issue Apr 26, 2021 · 2 comments
Open

Sorting With Secondary Column #180

swarrenwecareconnectorg opened this issue Apr 26, 2021 · 2 comments

Comments

@swarrenwecareconnectorg

Hello. Thank you for the wonderful library.

We're running into an odd problem. We have a page that can be sorted on a date column and if a date spans two pages we run into random situations where the same items appear on both pages. It's been really inconsistent.

Is there some way to tell the library to sort based on the date and the id so the order is consistent across pages? If not, we would be interested in adding it as a feature.

@Healyhatman
Copy link
Collaborator

Does it work if you do ->sortable('date')->orderBy('id') ?

@mr-bird-80
Copy link

@Healyhatman Thank you, this solution works for me perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants