chuweiqiang 1 gadu atpakaļ
vecāks
revīzija
97123453be
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      application/admin/model/video/Video.php

+ 1 - 1
application/admin/model/video/Video.php

@@ -34,7 +34,7 @@ class Video extends Model
     }
 
     public function file(){
-        return $this->hasMany(VideoFile::class,'video_id','id')->where('is_deleted',1)->order('sort desc,id desc');
+        return $this->hasMany(VideoFile::class,'video_id','id')->where('is_deleted',1)->order('sort desc,id asc');
     }