diff --git a/src/Kiota.Builder/CodeDOM/CodeFile.cs b/src/Kiota.Builder/CodeDOM/CodeFile.cs index 9b52d59d7a..5e8e7757a9 100644 --- a/src/Kiota.Builder/CodeDOM/CodeFile.cs +++ b/src/Kiota.Builder/CodeDOM/CodeFile.cs @@ -6,7 +6,7 @@ namespace Kiota.Builder.CodeDOM; public class CodeFile : CodeBlock { - public IEnumerable Interfaces => InnerChildElements.Values.OfType(); + public IEnumerable Interfaces => InnerChildElements.Values.OfType().OrderBy(static x => x.Name); public IEnumerable AddElements(params T[] elements) where T : CodeElement {