sort here so that exception messages are testable