From 4d6646e3afdcefe562ed1a60b617be06a0b1c5db Mon Sep 17 00:00:00 2001 From: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com> Date: Mon, 6 Jan 2025 13:28:14 +0100 Subject: [PATCH] Order by sortorder --- src/Umbraco.Core/Extensions/PublishedContentExtensions.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Core/Extensions/PublishedContentExtensions.cs b/src/Umbraco.Core/Extensions/PublishedContentExtensions.cs index adfdbb6076d7..0200d929a73b 100644 --- a/src/Umbraco.Core/Extensions/PublishedContentExtensions.cs +++ b/src/Umbraco.Core/Extensions/PublishedContentExtensions.cs @@ -4453,7 +4453,8 @@ private static IEnumerable GetChildren( return childrenKeys .Where(x => publishStatusQueryService.IsDocumentPublished(x, culture)) .Select(publishedCache.GetById) - .WhereNotNull(); + .WhereNotNull() + .OrderBy(x => x.SortOrder); } private static IEnumerable FilterByCulture(