oderBy meetup_events_count

This commit is contained in:
Benjamin Takats
2022-12-15 15:00:27 +01:00
parent 7be1194e43
commit c684fa23f8

View File

@@ -58,7 +58,8 @@ class MeetupTable extends DataTableComponent
->whereHas('city.country', fn($query) => $query->where('code', $this->country))
->withCount([
'meetupEvents',
]);
])
->orderBy('meetup_events_count', 'desc');
}
public function meetupEventSearch($id)