UHM-1204 adding sort function for upcoming appointments page