Sort tracks by track number
This commit is contained in:
parent
03508e73b9
commit
c25b7badbe
2 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ const getAlbumInfo = (root, tracks) => ({
|
|||
bitrate: collect(tracks, t => t.format.bitrate),
|
||||
trackCount: tracks.length,
|
||||
cover: tracks[0].cover || null,
|
||||
tracks,
|
||||
tracks: _.sortBy(tracks, 'common.track.no'),
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue