The normal thing would be sorting with OrderBy in linq.
So you can fetch the current node in your surface controller and then fetch the children and use somthing like node.Children.OrderBy(x => x.price) to sort the nodes. This returns an ienumerable which you can return to your partial view.
Sort children nodes on its properties with surface controller
I have children of my page model of a "kurs" document type.
The "kurs" document type has following properties:
My aim is to get the nodes be filtered through some surface controllers on the site
(such as Dropdown, Checkbox, Input..) and the filtered list of the "kurs"-nodes to be listed.
..So I can't start! Dont get the Idea, how to get them be sortet.
Schould I set a new var - as a list of nodes - such as IEnumerable ?
Please help!
The normal thing would be sorting with OrderBy in linq.
So you can fetch the current node in your surface controller and then fetch the children and use somthing like
node.Children.OrderBy(x => x.price)
to sort the nodes. This returns an ienumerable which you can return to your partial view.is working on a reply...