From 813e5e1db811f7c47b4f9156283619f9ca007c1f Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 7 Feb 2019 18:48:51 -0800 Subject: [PATCH] New: Sort queue by status --- frontend/src/Store/Actions/queueActions.js | 1 + src/Sonarr.Api.V3/Queue/QueueModule.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/frontend/src/Store/Actions/queueActions.js b/frontend/src/Store/Actions/queueActions.js index ce0af3370..5bb4fe893 100644 --- a/frontend/src/Store/Actions/queueActions.js +++ b/frontend/src/Store/Actions/queueActions.js @@ -58,6 +58,7 @@ export const defaultState = { { name: 'status', columnLabel: 'Status', + isSortable: true, isVisible: true, isModifiable: false }, diff --git a/src/Sonarr.Api.V3/Queue/QueueModule.cs b/src/Sonarr.Api.V3/Queue/QueueModule.cs index 957fb9a46..f29e22504 100644 --- a/src/Sonarr.Api.V3/Queue/QueueModule.cs +++ b/src/Sonarr.Api.V3/Queue/QueueModule.cs @@ -142,6 +142,8 @@ namespace Sonarr.Api.V3.Queue { switch (pagingSpec.SortKey) { + case "status": + return q => q.Status; case "series.sortTitle": return q => q.Series?.SortTitle; case "episode":