Edit

Share via


Series.Sort Method

Definition

Performs a sort on a Series. Note that the DataManipulator class provides sort methods that have greater flexibility than these sort methods.

Overloads

Sort(IComparer<DataPoint>)

Sorts the points in the series using IComparer interface.

Sort(PointSortOrder)

Sorts the data points in the series, given the specified sort order.

Sort(PointSortOrder, String)

Sorts the points in the series, given the specified sort order and value to use for the sort.

Sort(IComparer<DataPoint>)

Sorts the points in the series using IComparer interface.

public void Sort(System.Collections.Generic.IComparer<System.Web.UI.DataVisualization.Charting.DataPoint> comparer);

Parameters

comparer
IComparer<DataPoint>

The IComparer interface.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Sort(PointSortOrder)

Sorts the data points in the series, given the specified sort order.

public void Sort(System.Web.UI.DataVisualization.Charting.PointSortOrder pointSortOrder);

Parameters

pointSortOrder
PointSortOrder

The sort order.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Sort(PointSortOrder, String)

Sorts the points in the series, given the specified sort order and value to use for the sort.

public void Sort(System.Web.UI.DataVisualization.Charting.PointSortOrder pointSortOrder, string sortBy);

Parameters

pointSortOrder
PointSortOrder

The sort order.

sortBy
String

The value used for the sort (X, Y, Y2 ...).

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1