Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi I have a problem with sorting my nodes If I sort them in the backend it works like a charm and I can see the right order in the backend but when I get the list of children from currentpage and I debug with visual studio the sort order change ?
I got this structur
child1 sort int 0
child2 sort int 1
child3 sort int 2
But when I do this
List<Umbraco.Web.Models.DynamicPublishedContent> selection = CurrentPage.Children.Where(x => x.DocumentTypeAlias != "alias").OrderBy(x => x.SortOrder).ToList();
And I debug the selection and see how they order now the structur looks like this
child2 sort int 5
child3 sort int 6
child1 sort int 6
I have never experienced this before.
I was trying republishing the site because I was thinking it could be a cache issue, but this didn't change anything.
Im using umbraco 7.2.2
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted