Messages should be sorted correctly