Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NavLinkCollection.Sort(IComparer) Method

Sorts links in the group using the specified IComparer object.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

public virtual void Sort(
    IComparer comparer
)

#Parameters

Name Type Description
comparer IComparer

A IComparer object providing custom comparing rules for the sorting routine.

#Remarks

The NavLinkCollection.SortByCaption method allows you to sort a group’s links by their captions. You can, however, create a custom IComparer object, which implements custom comparison rules, and then sort items using the Sort method.

See Also