diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationPartSorter.cs b/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationPartSorter.cs index 2cb30a811e..5c31a438d5 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationPartSorter.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationPartSorter.cs @@ -23,7 +23,7 @@ public static class ApplicationPartSorter if (!parts.IsNullOrEmpty()) { - sortedParts.AddRange(parts); + sortedParts.AddRange(parts.OrderBy(x => x is AssemblyPart ? 1 : 0)); } } sortedParts.Reverse();