This documentation is archived and is not being maintained.

DataManipulator::Sort Method (PointSortOrder, String, Series)

Performs a sort on the data points in a series using the specified order. The sort can be based on any available data point value.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public:
void Sort(
	PointSortOrder pointSortOrder, 
	String^ sortBy, 
	Series^ series
)

Parameters

pointSortOrder
Type: System.Web.UI.DataVisualization.Charting::PointSortOrder
A PointSortOrder enumeration value that determines if the sort is ascending or descending
sortBy
Type: System::String
A string value that represents the data point values to be sorted. Possible values are: "X", "Y", "Y2", "Y3", "AxisLabel", and so forth.
series
Type: System.Web.UI.DataVisualization.Charting::Series
The Series object to be sorted.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: