added extra patient, added sorting for patients