© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Pantlock

Reorderable with descending order

Hi, I have an app with a resource that I want to be reorderable, but with a descending order. I am using the
spatie/eloquent-sortable
spatie/eloquent-sortable
package fot the
order_column
order_column
.

In the filament resource file, I have the
->defaultSort('order_column', 'desc')
->defaultSort('order_column', 'desc')
that changes the order when just viewing all the records. Then of course I have the
->reorderable('order_column')
->reorderable('order_column')
on the table as well.

Has anyone dealt with the fact that the reorderable uses ascending order? I would like the order to stay the same when viewing and editing the records.

Is there some simple workaround?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Change Default Order To Descending
FilamentFFilament / ❓┊help
3y ago
Export rows fail when query includes descending order
FilamentFFilament / ❓┊help
3y ago
How to set a Default Group With Descending Order By Default
FilamentFFilament / ❓┊help
2y ago
Show orderitems associated with orders
FilamentFFilament / ❓┊help
2y ago