mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
orderBy reputation
This commit is contained in:
@@ -17,10 +17,13 @@ class HighscoreTable extends Component
|
|||||||
{
|
{
|
||||||
return view('livewire.book-case.highscore-table', [
|
return view('livewire.book-case.highscore-table', [
|
||||||
'plebs' => User::query()
|
'plebs' => User::query()
|
||||||
|
->with([
|
||||||
|
'reputations',
|
||||||
|
])
|
||||||
->withCount([
|
->withCount([
|
||||||
'orangePills',
|
'orangePills',
|
||||||
])
|
])
|
||||||
->orderByDesc('orange_pills_count')
|
->orderByDesc('reputation')
|
||||||
->get(),
|
->get(),
|
||||||
])->layout('layouts.app', [
|
])->layout('layouts.app', [
|
||||||
'SEOData' => new SEOData(
|
'SEOData' => new SEOData(
|
||||||
|
|||||||
Reference in New Issue
Block a user