Fix Appoiments and Encounters report to sort by visit date where there is no appointment.