orderBy reputation

This commit is contained in:
Benjamin Takats
2023-01-16 00:58:00 +01:00
parent 0c27c8d37f
commit bd39fa9bb4

View File

@@ -17,10 +17,13 @@ class HighscoreTable extends Component
{
return view('livewire.book-case.highscore-table', [
'plebs' => User::query()
->with([
'reputations',
])
->withCount([
'orangePills',
])
->orderByDesc('orange_pills_count')
->orderByDesc('reputation')
->get(),
])->layout('layouts.app', [
'SEOData' => new SEOData(