Sorting of products in lunar panel #2032
yasirmturk
started this conversation in
RFC
Replies: 2 comments 2 replies
-
I think we need to consider relevancy of search for this. If we always order by a field, then finding a specific customer or w.e. becomes a lot harder. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I have a work around , in AppServiceProvider use Filament\Tables\Table;
public function boot(): void
{
Table::configureUsing(function (Table $table): void {
$table->defaultSort('id', 'desc');
});
} any table without defaultSort will start sorting by id desc, I just started with lunar so I'm not sure if there some places might get affected, but it works for products |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team, in the lunar panel for example there is no option to sort.
It makes sense to sort the products based on created date DESC but it always shows ASC and admin has to next next many pages.
I know search is there but it is using 3rd party search api in most cases which costs money. Another idea is to make admin search configurable using different service or database by default 🤔
Beta Was this translation helpful? Give feedback.
All reactions