sort cues for time improved

This commit is contained in:
NikolaBorislavovHristov 2018-12-28 17:37:31 +02:00
parent 67d130c437
commit 1bee511055

View file

@ -36,6 +36,7 @@ module.exports = function(cues, time) {
}
return cuesForTime.sort(function(c1, c2) {
return c1.startTime - c2.startTime;
return c1.startTime - c2.startTime ||
c1.endTime - c2.endTime;
});
};