aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-12-28 13:56:51 +0100
committerGitHub <noreply@github.com>2021-12-28 13:56:51 +0100
commit2ab3bf97ef76152169cc5dd9e386e3bf73cd1768 (patch)
treec49627552a271959df68112f82489f7968cbc5e0
parent251b9a5235e728f5b755cfd4b95f844e5e6c435f (diff)
parent57db188c2eb9719659b9ec3e82331ca4630134f0 (diff)
Merge pull request #7059 from crobibero/device-order
-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)