Fix show season order
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Grégoire Delattre 2020-04-16 16:15:18 +02:00
parent 9494cf571f
commit eff6b6e19f

View File

@ -51,7 +51,9 @@ export default (state = defaultState, action) =>
});
let seasonMap = new Map();
seasonNumbers.sort().forEach((n) => {
seasonNumbers
.sort((a, b) => a - b)
.forEach((n) => {
let episodes = [];
seasons[n]
.sort((a, b) => a.episode - b.episode)