From 7a336e699a6889c4832d9beea812ff43dacf7aaf Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Fri, 17 Jan 2025 13:05:06 +1100 Subject: [PATCH] request: device profile OUs should be sorted alphabetically --- Disco.Services/Interop/ActiveDirectory/ADDomainController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Disco.Services/Interop/ActiveDirectory/ADDomainController.cs b/Disco.Services/Interop/ActiveDirectory/ADDomainController.cs index 42bb6fce..a187ac6a 100644 --- a/Disco.Services/Interop/ActiveDirectory/ADDomainController.cs +++ b/Disco.Services/Interop/ActiveDirectory/ADDomainController.cs @@ -314,7 +314,7 @@ namespace Disco.Services.Interop.ActiveDirectory ADOrganisationalUnit ouParent; if (indexedOrganisationalUnits.TryGetValue(ouChildren.Key, out ouParent)) { - ouParent.Children = ouChildren.Value; + ouParent.Children = ouChildren.Value.OrderBy(o => o.Name).ToList(); } }