aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2021-12-27 16:43:29 -0700
committerCody Robibero <cody@robibe.ro>2021-12-27 16:43:29 -0700
commit57db188c2eb9719659b9ec3e82331ca4630134f0 (patch)
treec49627552a271959df68112f82489f7968cbc5e0
parent251b9a5235e728f5b755cfd4b95f844e5e6c435f (diff)
Fix device ordering
-rw-r--r--Jellyfin.Server.Implementations/Devices/DeviceManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
index 54d1a5337..6c77421c7 100644
--- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
+++ b/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)