Sort data criteria by start date when saving a patient