X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FTournament.php;h=f8b4804859fd6b03447901574647cf91941ced9b;hb=ccaa2cf99468fea81efdf28aaa3fc72a278a95f6;hp=a19e179ccaaeede4d127390ce831c34a1f0f5ae6;hpb=55f2d7cd6c290a0d26db177d54d20c393f890bbb;p=alttp.git diff --git a/app/Models/Tournament.php b/app/Models/Tournament.php index a19e179..f8b4804 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('created_at'); } }