fly 4 năm trước cách đây
mục cha
commit
26f55cb4cd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Modules/User/Services/ReadRecordService.php

+ 1 - 1
app/Modules/User/Services/ReadRecordService.php

@@ -143,7 +143,7 @@ class ReadRecordService
             if ($a['time'] >= $b['time']) return -1;
             return 1;
         });
-        return collect($res)->sortBy('time', 'desc')->values()->all();
+        return collect($res)->sortByDesc('time')->values()->all();
     }
 
     /**