Sorting With Secondary Column
Opened this issue · 2 comments
swarrenwecareconnectorg commented
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 commented
Does it work if you do ->sortable('date')->orderBy('id') ?
mr-bird-80 commented
@Healyhatman Thank you, this solution works for me perfectly.