Array.RankSort(Object) Method

Top 

Description

Sorts all input StringArray, Array, and TimeSpanArray arguments in the order specified by the calling Array. Elements of the calling array should be integers where a positive value indicates an ascending sort and negative indicates a descending sort. For example, for a calling Array of {3, -1, 2}, the objects passed in as arguments will first be sorted based on ascending order of the third argument, then descending order of the first argument, and finally ascending order of the second argument. A value of zero in the calling Array stops the sorting, unless the zero is the first element of the calling Array, in which case it is treated as a 1.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

Array.RankSort(

Object synchronizedCollection)

 

 

Arguments

synchronizedCollection


Description:

An Array, StringArray, or TimeSpanArray which will be sorted in the order specified by the calling Array

Repeatable:

0 to Unlimited times

 

 

 

Return Value

Type:

number

 

 

Returns the number of rows in the input arrays.

 

Syntax

myVariable1 = myArray1.RankSort(myObject1);

 

 

See also

Array Object

Matrix, Array, and Variable Math Guide