preliminary sorting of appts on from time. doesnt work completely bc sorting on strings