Skip to content

Commit 3145fa0

Browse files
committed
Change tag order for threads too
1 parent 076de00 commit 3145fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/Models/Thread.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function comments() : MorphMany
165165

166166
public function tags(): MorphToMany
167167
{
168-
return $this->morphToMany(Tag::class, 'taggable');
168+
return $this->morphToMany(Tag::class, 'taggable')->orderByRaw('taggables.created_at');;
169169
}
170170

171171
public function tagsSpecial(): HasMany

0 commit comments

Comments
 (0)