order by desc for treatment plans and appointments