X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FTournament.php;h=217622bb9681c950d6b4113b38464ef6bf4ed167;hb=eebc6384e56336b66ec250fc2aea3be6171d53ff;hp=a19e179ccaaeede4d127390ce831c34a1f0f5ae6;hpb=55f2d7cd6c290a0d26db177d54d20c393f890bbb;p=alttp.git diff --git a/app/Models/Tournament.php b/app/Models/Tournament.php index a19e179..217622b 100644 --- a/app/Models/Tournament.php +++ b/app/Models/Tournament.php @@ -14,11 +14,11 @@ class Tournament extends Model } public function protocols() { - return $this->hasMany(Protocol::class); + return $this->hasMany(Protocol::class)->orderBy('created_at', 'DESC'); } public function rounds() { - return $this->hasMany(Round::class); + return $this->hasMany(Round::class)->orderBy('number', 'DESC'); } }