internal static void ValidateSortClause(DbExpression key, string collation) { ArgumentValidation.ValidateSortClause(key); Check.NotEmpty(collation, nameof(collation)); if (!TypeSemantics.IsPrimitiveType(key.ResultType, PrimitiveTypeKind.String)) { throw new ArgumentException(Strings.Cqt_Sort_NonStringCollationInvalid, nameof(collation)); } }