Sort medical data by date