Added duplicate checking and sorting to time.php; times are now in order.