Match sorting with that of https://swagger.dysolix.dev

This commit is contained in:
estrogen elf
2025-05-05 00:19:29 -05:00
parent 5ebed22ae3
commit b18f425257

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using Microsoft.OpenApi.Models; using Microsoft.OpenApi.Models;
namespace Needlework.Net.Models; namespace Needlework.Net.Models;
@@ -63,6 +64,10 @@ public class OpenApiDocumentWrapper
} }
} }
plugins = new(plugins.ToDictionary(
kvp => kvp.Key,
kvp => kvp.Value.OrderBy(x => x.Path).ToList()));
Plugins = plugins; Plugins = plugins;
} }
} }