ArrayPrototype::sort Method (Object^, Object^)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Sorts the elements of the specified array by using the specified function to compare the elements.

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public:
[JSFunctionAttribute(JSFunctionAttributeEnum::HasThisObject, 
	JSBuiltin::Array_sort)]
static Object^ sort(
	Object^ thisob,
	Object^ function
)

Parameters

thisob
Type: System::Object^

The object that this method is acting upon.

function
Type: System::Object^

The function to use to compare elements.

Return Value

Type: System::Object^

thisob.

.NET Framework
Available since 1.1
Return to top
Show: