wip
This commit is contained in:
1 parent
fa13ef40b0
commit
4c732a2686
3 files changed
+1
-100
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user