Share via


NavigationComparer.SortNavigationNodes Method

Uses the specified configuration to sort the specified list.

Namespace:  Microsoft.SharePoint.Publishing.Navigation
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Sub SortNavigationNodes ( _
    nodes As List(Of PortalSiteMapNode) _
)
'Usage
Dim instance As NavigationComparer
Dim nodes As List(Of PortalSiteMapNode)

instance.SortNavigationNodes(nodes)
public void SortNavigationNodes(
    List<PortalSiteMapNode> nodes
)

Parameters

Remarks

The sort order of the list that results from using this method might be different than the sort order that results from using the list.Sort(comparer) method. The [SortNavigationNodes(System.Collections.GenericList{Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapNode})] method respects the OrderingMethod parameter in that it sorts only nodes representing Web pages if the ManualWithAutomaticPageSorting option is specified, and applies the navigation concept of placing pages after any other items.

See Also

Reference

NavigationComparer Class

NavigationComparer Members

Microsoft.SharePoint.Publishing.Navigation Namespace

OrderingMethod

NavigationComparer