SortArrayWithKeyNode

 

Introduced

7.0

UI Location

• Array

Description

Sorts the input array with the specified key. Rather than sorting the array based on the values of its elements, this node allows you to sort the array based on the value of the elements in the key array. The node expects the array and key array to be of the same size.

Port Description

Inputs

Group ID

Instances

Port Name

Connection Info

Description

0

1

ascending

Type: siICENodeDataBool

Structure: siICENodeStructureSingle

Context: siICENodeContextSingleton

True to sort the input array in ascending order; false for descending.

keyarray

Type: siICENodeDataValue

Structure: siICENodeStructureAny

Context: siICENodeContextAny

The array to use as a sorting key. This array must be of the same size as the data array to sort.

array

Type: siICENodeDataValue

Structure: siICENodeStructureAny

Context: siICENodeContextAny

The array to sort.

Outputs

Port Name

Connection Info

Description

result

Type: siICENodeDataValue

Structure: siICENodeStructureArray

Context: siICENodeContextAny

The sorted array.

Restrictions

• These types must match: array, result

• These contexts must match: keyarray, array, result

See Also

FindInArrayNode

SortArrayNode

Accessing Data from Array Nodes



Autodesk Softimage v7.5