use time to sort messages