Array.RankSort(Object) Method

Top 

Description

Sorts all input StringArray and Array 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 millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

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

 

Method Signature

Array.RankSort(

Object synchronizedCollection)

 

 

Arguments

synchronizedCollection


Description:

An Array or StringArray 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);

 

 

Example 1

 

 

See also

Array Object

Matrix, Array, and Variable Math Guide