sorting messaging on id that is date