Skip to main content

NavLinkCollection.Sort(IComparer) Method

Sorts links in the group using the specified IComparer object.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.1.dll

NuGet Packages: DevExpress.Win, DevExpress.Win.Navigation

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