Skip to content

Commit 8384319

Browse files
authored
Merge pull request #316 from delegateas/feature/generator-sorting
Ordinal sorting (byte-code based instead of locale) of the SecurityRoles struct to reduce unnessary changes to the file
2 parents 3a43740 + ef8125e commit 8384319

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MetadataGen/MetadataGenerator.Core/Services/DataContractMetadataSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ await Task.Run(() =>
131131
file.WriteLine("namespace DG.Tools.XrmMockup {");
132132
file.WriteLine("\tpublic struct SecurityRoles {");
133133

134-
foreach (var securityRole in securityRoles.OrderBy(x => x.Value.Name))
134+
foreach (var securityRole in securityRoles.OrderBy(x => x.Value.Name, StringComparer.Ordinal))
135135
{
136136
file.WriteLine($"\t\tpublic static Guid {ToSafeName(securityRole.Value.Name)} = new Guid(\"{securityRole.Key}\");");
137137
}

0 commit comments

Comments
 (0)