mrkbingham
Sorting Repeatable Entries on Infolists
Am I correct in that the best way to preserve the sort from a Form Repeater field to an Infolist Repeatable entry is to modify the relationship with
->orderBy('sort');
?
I spent quite some time looking through the code, and assumed there would be some sort of default query modification happening, or a similar option to the orderColumn
function available on the Repeater
component. If this is the case, I'm happy to open a new PR to update the docs with this suggestion, but wanted to confirm.2 replies