Time Line now properly sorts itself

Addition of a new variable was required. It is also possible to add
values to array items after initilisation however a check for a
non-existant item returns an error