Fixed: Correctly sort by track number in ManageTracks modal

Fixes #494
pull/505/head
Qstick 6 years ago
parent 64a8d02f77
commit 871fb089d3

@ -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 });

Loading…
Cancel
Save