add in get sorted time array