F
Filament8mo ago
Zoey

Can we pass sortable() a field name or array of field names to sort on?

For example, if we have a table TextColumn that displays full_name it would be great if we could pass sortable(['last_name', 'first_name']) so it sorts on the last name and then the first name. Actually I think it does appear to work as an array parameter, but I didn't see any mention of it in the documentation. Also, after testing it out, the order to have sorted by last name then first name would be sortable(['first_name', 'last_name']) . Is there documentation for this functionality? Thanks!
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server