Series.Sort 方法

定义

Series 执行排序。Performs a sort on a Series. 请注意,DataManipulator 类所提供的排序方法比这些排序方法具有更大的灵活性。Note that the DataManipulator class provides sort methods that have greater flexibility than these sort methods.

重载

Sort(IComparer<DataPoint>)

使用 IComparer 接口对序列中的点进行排序。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>)

使用 IComparer 接口对序列中的点进行排序。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))

参数

comparer
IComparer<DataPoint>

IComparer 接口。The IComparer interface.

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

参数

pointSortOrder
PointSortOrder

排序顺序。The sort order.

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

参数

pointSortOrder
PointSortOrder

排序顺序。The sort order.

sortBy
String

用于排序的值(X、Y、Y2 ...)。The value used for the sort (X, Y, Y2 ...).

适用于