]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Tournament.php
allow admins to lock/unlock rounds
[alttp.git] / app / Models / Tournament.php
index f8b4804859fd6b03447901574647cf91941ced9b..217622bb9681c950d6b4113b38464ef6bf4ed167 100644 (file)
@@ -18,7 +18,7 @@ class Tournament extends Model
        }
 
        public function rounds() {
-               return $this->hasMany(Round::class)->orderBy('created_at');
+               return $this->hasMany(Round::class)->orderBy('number', 'DESC');
        }
 
 }