Show tracks sorted by index

This commit is contained in:
Stefano Brilli 2020-04-02 15:59:05 +02:00
parent 9356383fe5
commit 5535197892
1 changed files with 1 additions and 0 deletions

View File

@ -173,6 +173,7 @@ export const Main = (props: {}) => {
}
}
}
tracks.sort((l, r) => l.index - r.index);
// Action Handlers
const handleSelectClick = (event: React.MouseEvent, item: number) => {