Out of order message fix

Fixed messages sent in the same second from appearing out of order when searched.