fly hace 4 años
padre
commit
26f55cb4cd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();
     }
 
     /**