แก้ไข

แชร์ผ่าน


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);
public void Sort (System.Collections.Generic.IComparer<System.Web.UI.DataVisualization.Charting.DataPoint> comparer);
member this.Sort : System.Collections.Generic.IComparer<System.Web.UI.DataVisualization.Charting.DataPoint> -> unit
Public Sub Sort (comparer As IComparer(Of DataPoint))

Parameters

comparer
IComparer<DataPoint>

The IComparer interface.

Applies to

Sort(PointSortOrder)

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

public:
 void Sort(System::Web::UI::DataVisualization::Charting::PointSortOrder pointSortOrder);
public void Sort (System.Web.UI.DataVisualization.Charting.PointSortOrder pointSortOrder);
member this.Sort : System.Web.UI.DataVisualization.Charting.PointSortOrder -> unit
Public Sub Sort (pointSortOrder As PointSortOrder)

Parameters

pointSortOrder
PointSortOrder

The sort order.

Applies to

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, System::String ^ sortBy);
public void Sort (System.Web.UI.DataVisualization.Charting.PointSortOrder pointSortOrder, string sortBy);
member this.Sort : System.Web.UI.DataVisualization.Charting.PointSortOrder * string -> unit
Public Sub Sort (pointSortOrder As PointSortOrder, sortBy As String)

Parameters

pointSortOrder
PointSortOrder

The sort order.

sortBy
String

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

Applies to