You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you published the resource files and customized them? (php artisan vendor:publish)
Yes
What is the problem?
I'm working with a table that has a lot of data, and when displaying it, I don't want any sorting to be applied to it so that my speed is higher. The same goes for when exporting the data. PowerGrid adds a sort field by default, and I can't disable it.
Code snippets
public function applySorting(Collection $query): Collection
{
if ($this->multiSort) {
return $this->applySortingArray($query);
}
if (is_a($query, Collection::class)) {
return $query->sortBy($this->sortField, SORT_REGULAR, !(($this->sortDirection === 'asc')));
}
return $query->orderBy($this->sortField, $this->sortDirection);
}
How do you expect it to work?
I want to be able to disable sorting, for example:
public string $sortField = '';
Please confirm (incomplete submissions will not be addressed)
I have provided easy and step-by-step instructions to reproduce the bug.
I have provided code samples as text and NOT images.
I understand my bug report will be removed if I haven't met the criteria above.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Livewire PowerGrid version
v6.3
Livewire version
v3.6
Laravel version
v12.10
Which PHP version are you using?
PHP 8.3
Which Theme are you using?
Bootstrap 5
Have you published the resource files and customized them? (php artisan vendor:publish)
Yes
What is the problem?
I'm working with a table that has a lot of data, and when displaying it, I don't want any sorting to be applied to it so that my speed is higher. The same goes for when exporting the data. PowerGrid adds a sort field by default, and I can't disable it.
Code snippets
How do you expect it to work?
I want to be able to disable sorting, for example:
public string $sortField = '';
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions