Sort Array with Key

 
 
 

Categories

  • 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.

Note that you cannot sort arrays of locations or custom user data blobs.

Ports

Inputs

Ascending

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

Key Array

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

Array

The array to sort.

Outputs

Result

The sorted array.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License