This commit is contained in:
salam committed 2026-09-15 18:12:37 +02:00
1 parent fa13ef40b0
commit 4c732a2686
3 files changed
+1 -100

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ class PlayerPropsTable extends TableWidget
], layout: FiltersLayout::AboveContent)
->deferFilters(false)
->records(function () {
$collection = collect($this->players)->sortBy('order');
$collection = collect($this->players)->sortBy('order')->sortBy('active', SORT_NUMERIC, 1);
$selectedPosition = $this->tableFilters['positions']['area'] ?? null;
if (! empty($selectedPosition)) {
$collection = $collection->where('area', $selectedPosition);