Ensure correct sorting in Manage Tracks

This commit is contained in:
Bogdan 2023-07-16 06:37:52 +03:00
parent 3d615d0031
commit 980a1ac65c
1 changed files with 1 additions and 1 deletions

View File

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