change storage structure: items in an array and ids key-value-object where key is id and value is index of the item array
make sure that position is undefined when rendering without position
show departures grouped by lines (fix also indentation)