Make sure sorted_errors has unambiguous order for all error lists