Proper note date sorting