From 871fb089d36be5401a0b41276b587eb22e61a459 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 23 Sep 2018 20:56:51 -0400 Subject: [PATCH] Fixed: Correctly sort by track number in ManageTracks modal Fixes #494 --- .../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 d8e1c6552..91aedfb71 100644 --- a/frontend/src/TrackFile/Editor/TrackFileEditorModalContentConnector.js +++ b/frontend/src/TrackFile/Editor/TrackFileEditorModalContentConnector.js @@ -39,7 +39,7 @@ function createMapStateToProps() { return _.some(trackFiles.items, { id: track.trackFileId }); }); - const sorted = _.orderBy(filtered, ['albumId', 'trackNumber'], ['desc', 'asc']); + const sorted = _.orderBy(filtered, ['albumId', 'absoluteTrackNumber'], ['desc', 'asc']); const items = _.map(sorted, (track) => { const trackFile = _.find(trackFiles.items, { id: track.trackFileId });