Sort Array

Description

Sorts the data stored in an array based on specified properties.

 

Properties

Triggers Immediately

Array Type

Behavior: Perform the function on an Array behavior.

Value: Perform the function on a JSON formatted value. When entering a dictionary JSON value, the array will be the list of keys in the dictionary

Sort Type

Alphabetical Sort: Sorts an array of values in alphabetical order. Eg: sorting [foobar6, foobar10, CaT, cat, dog, Dog] will result in [CaT, Dog, cat, dog, foobar10, foobar6] turning off case sensitive will result in [CaT, cat, Dog, dog, foobar10, foobar6].

Numeric Sort: Will sort numbers in a natural order. Eg. sorting [foobar6, foobar10, CaT, cat, dog, Dog] will result in [CaT, cat, Dog, dog, foobar6, foobar10]

Shuffle: Randomly rearranges the values in the array.

Reverse: Reverses the order of the values stored in the array. Eg. sorting [foobar6, foobar10, CaT, cat, dog, Dog] will result in [Dog, dog, cat, CaT, foobar10, foobar6].

 

Outputs

Array

Outputs the Values in the array in an order determined by the Sort Type selected.

 

Examples 

If you have an array that represents a deck of cards, using the shuffle to sort the array will simulate shuffling the deck.

 

Related

Get Array Count

 

SortArrayReference.gif

0 Comments

Article is closed for comments.