Explorar o código

Merge pull request #7059 from crobibero/device-order

Bond-009 %!s(int64=3) %!d(string=hai) anos
pai
achega
2ab3bf97ef
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Jellyfin.Server.Implementations/Devices/DeviceManager.cs

+ 2 - 2
Jellyfin.Server.Implementations/Devices/DeviceManager.cs

@@ -173,8 +173,8 @@ namespace Jellyfin.Server.Implementations.Devices
             var sessions = dbContext.Devices
                 .Include(d => d.User)
                 .AsQueryable()
-                .OrderBy(d => d.DeviceId)
-                .ThenByDescending(d => d.DateLastActivity)
+                .OrderByDescending(d => d.DateLastActivity)
+                .ThenBy(d => d.DeviceId)
                 .AsAsyncEnumerable();
 
             if (supportsSync.HasValue)