thanks anon
i donebut didnt solve my problem i even tried justif(AppointmenList[currentSize].appdate == AppointmenList[k].appdate)but still sameif(AppointmentList[currentSize].time == AppointmentList[k].time)
so i dont think its a problemYour second if statement is waaay big!