try to sort messages, otherwise fail