X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FTournament.php;h=f8b4804859fd6b03447901574647cf91941ced9b;hb=c30ac282dde3d746d6a7762ee18c70b4416500b5;hp=a19e179ccaaeede4d127390ce831c34a1f0f5ae6;hpb=4388278823ac8a791641ac1d65fc675e9543b8e8;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'); } }