added the 'chrono' function which rearranges every array in Data such
that Data is stored in chronological order