Skip to content

Commit

Permalink
Order items
Browse files Browse the repository at this point in the history
  • Loading branch information
rkodev committed Sep 20, 2023
1 parent f632280 commit eb3062d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kiota.Builder/CodeDOM/CodeFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Kiota.Builder.CodeDOM;

public class CodeFile : CodeBlock<CodeFileDeclaration, CodeFileBlockEnd>
{
public IEnumerable<CodeInterface> Interfaces => InnerChildElements.Values.OfType<CodeInterface>();
public IEnumerable<CodeInterface> Interfaces => InnerChildElements.Values.OfType<CodeInterface>().OrderBy(static x => x.Name);

public IEnumerable<T> AddElements<T>(params T[] elements) where T : CodeElement
{
Expand Down

0 comments on commit eb3062d

Please sign in to comment.