]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/DiscordGuild.php
track twitch category where chats were sent in
[alttp.git] / app / Models / DiscordGuild.php
index 84fd77bc4af0b785ff7df37aaf3ff3a1f899dc9d..bcbd12dd32b835a4b71bcabf774a0e6a1e31f424 100644 (file)
@@ -45,11 +45,11 @@ class DiscordGuild extends Model
        }
 
        public function channels() {
-               return $this->hasMany(DiscordChannel::class);
+               return $this->hasMany(DiscordChannel::class)->orderBy('position');
        }
 
        public function roles() {
-               return $this->hasMany(DiscordRole::class);
+               return $this->hasMany(DiscordRole::class)->orderBy('position');
        }
 
        protected $fillable = [