Skip to content

Commit

Permalink
Ensure correct sorting in Manage Tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Jul 16, 2023
1 parent 3d615d0 commit 980a1ac
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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 });
Expand Down

0 comments on commit 980a1ac

Please sign in to comment.