public function sortCues()
{
$tmp = array();
$count = 0;
// useful if 2 cues start at the same time code
foreach ($this->cues as $cue) {
$tmp[$cue->getStartMS() . '.' . $count] = $cue;
$count++;
}
ksort($tmp);
$this->cues = array();
foreach ($tmp as $cue) {
$this->cues[] = $cue;
}
return $this;
}