Adding sort on time