diff --git a/app/Models/Programs.php b/app/Models/Programs.php index 646608d..6f4cb3a 100644 --- a/app/Models/Programs.php +++ b/app/Models/Programs.php @@ -10,7 +10,7 @@ class Programs extends Model protected $dateFormat = 'U'; public function appends(): \Illuminate\Database\Eloquent\Relations\HasMany { - return $this->hasMany(ProgramAppends::class, "program_id", "id")->orderByDesc("is_original"); + return $this->hasMany(ProgramAppends::class, "program_id", "id")->orderByDesc("is_original")->orderBy("created_at"); } public function video_pivots(): \Illuminate\Database\Eloquent\Relations\HasMany