diff --git a/Src/Newtonsoft.Json.Schema/Generation/JSchemaGeneratorInternal.cs b/Src/Newtonsoft.Json.Schema/Generation/JSchemaGeneratorInternal.cs index a9b15c43..f0ca2efa 100644 --- a/Src/Newtonsoft.Json.Schema/Generation/JSchemaGeneratorInternal.cs +++ b/Src/Newtonsoft.Json.Schema/Generation/JSchemaGeneratorInternal.cs @@ -73,7 +73,7 @@ public JSchema Generate(Type type, Required required, JsonProperty? memberProper } // definition schemas alphabetical ordered - foreach (KeyValuePair definitionSchema in definitionsSchemas.OrderBy(s => s.Key)) + foreach (KeyValuePair definitionSchema in definitionsSchemas.OrderBy(s => s.Key, StringComparer.Ordinal)) { definitions[definitionSchema.Key] = definitionSchema.Value; }