From 980a1ac65c2d9583f7428717be9ea085bdc168dd Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 16 Jul 2023 06:37:52 +0300 Subject: [PATCH] Ensure correct sorting in Manage Tracks --- .../TrackFile/Editor/TrackFileEditorModalContentConnector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/TrackFile/Editor/TrackFileEditorModalContentConnector.js b/frontend/src/TrackFile/Editor/TrackFileEditorModalContentConnector.js index c2e75d5cc..71bb1a4f4 100644 --- a/frontend/src/TrackFile/Editor/TrackFileEditorModalContentConnector.js +++ b/frontend/src/TrackFile/Editor/TrackFileEditorModalContentConnector.js @@ -59,7 +59,7 @@ function createMapStateToProps() { return _.some(trackFiles.items, { id: track.trackFileId }); }); - const sorted = _.orderBy(filtered, ['albumId', 'absoluteTrackNumber'], ['desc', 'asc']); + const sorted = _.orderBy(filtered, ['albumId', 'mediumNumber', 'absoluteTrackNumber'], ['desc', 'asc', 'asc']); const items = _.map(sorted, (track) => { const trackFile = _.find(trackFiles.items, { id: track.trackFileId });