1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-24 22:35:49 -04:00

New: Use natural sorting for lists of items in the UI

(cherry picked from commit 1a1c8e6c08a6db5fcd2b5d17e65fa1f943d2e746)

Closes #10177
This commit is contained in:
Mark McDowall
2024-07-16 21:34:43 -07:00
committed by Bogdan
parent a5b48153a6
commit f2af7a1b72
32 changed files with 96 additions and 68 deletions
@@ -4,7 +4,7 @@ import { createAction } from 'redux-actions';
import { batchActions } from 'redux-batched-actions';
import { filterBuilderTypes, filterBuilderValueTypes, filterTypes, sortDirections } from 'Helpers/Props';
import { createThunk, handleThunks } from 'Store/thunks';
import sortByName from 'Utilities/Array/sortByName';
import sortByProp from 'Utilities/Array/sortByProp';
import createAjaxRequest from 'Utilities/createAjaxRequest';
import getNewMovie from 'Utilities/Movie/getNewMovie';
import getSectionState from 'Utilities/State/getSectionState';
@@ -346,7 +346,7 @@ export const defaultState = {
return acc;
}, []);
return tagList.sort(sortByName);
return tagList.sort(sortByProp('name'));
}
},
{
@@ -365,7 +365,7 @@ export const defaultState = {
return acc;
}, []);
return collectionList.sort(sortByName);
return collectionList.sort(sortByProp('name'));
}
},
{
@@ -384,7 +384,7 @@ export const defaultState = {
return acc;
}, []);
return collectionList.sort(sortByName);
return collectionList.sort(sortByProp('name'));
}
},
{
@@ -426,7 +426,7 @@ export const defaultState = {
return acc;
}, []);
return tagList.sort(sortByName);
return tagList.sort(sortByProp('name'));
}
},
{