sort messages by resent