Ensure correct sorting in Manage Tracks

pull/3885/head
Bogdan 1 year ago
parent 3d615d0031
commit 980a1ac65c

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

Loading…
Cancel
Save