From 1214eda6ec21f31f315f802364eedd4055ce7160 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 22 Jan 2024 14:10:24 +0200 Subject: [PATCH] Fixed: Sorting by name in Manage Indexer and Download Client modals (cherry picked from commit 31baed4b2c2406e48b8defa51352a13adb6d470f) --- frontend/src/Store/Actions/Settings/downloadClients.js | 7 ++++++- frontend/src/Store/Actions/Settings/indexers.js | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/frontend/src/Store/Actions/Settings/downloadClients.js b/frontend/src/Store/Actions/Settings/downloadClients.js index 1f4765121..aee945ef5 100644 --- a/frontend/src/Store/Actions/Settings/downloadClients.js +++ b/frontend/src/Store/Actions/Settings/downloadClients.js @@ -94,7 +94,12 @@ export default { items: [], pendingChanges: {}, sortKey: 'name', - sortDirection: sortDirections.DESCENDING + sortDirection: sortDirections.ASCENDING, + sortPredicates: { + name: function(item) { + return item.name.toLowerCase(); + } + } }, // diff --git a/frontend/src/Store/Actions/Settings/indexers.js b/frontend/src/Store/Actions/Settings/indexers.js index d8bd85ebe..1e9aded2f 100644 --- a/frontend/src/Store/Actions/Settings/indexers.js +++ b/frontend/src/Store/Actions/Settings/indexers.js @@ -98,7 +98,12 @@ export default { items: [], pendingChanges: {}, sortKey: 'name', - sortDirection: sortDirections.DESCENDING + sortDirection: sortDirections.ASCENDING, + sortPredicates: { + name: function(item) { + return item.name.toLowerCase(); + } + } }, //