Sorts a list. Specify the list to be sorted and the Randomisation Type required

 

sort

 

Function Type

Description

Any

Leaves the order as is.

Random

Sorts in a random order.

Weighted Random

Sorts in a random order with weight given by a property.

Sorted

Standard sort.

 

For any sort other than Any then define whether the Path is going to be Direct, Indirect(select highest weight) or Indirect(select lowest weight), set up the Sort Order, Increasing or Decreasing and specify the property which will define how the list is sorted. This can be of type Integer, Date, String or JavaEnum. If the Path is set to be Indirect the user will also be asked for the Referee Path to find the Weight Path. Finally once the Weight Path is set up the user will be asked to define a Default Weight for those items that do not have one. When dealing with dates the one closest to Now has the lowest weight whether its in the future or the past.

 

sortRandom

 

Returns size the number of objects in the list and list which is the sorted list for use with subsequent Actions. Use ForEach or ListExtract on the returned list.

Properties Available for Child Actions To Use

The following properties are available for use in any child or descendant action:

 

Properties

Notes

size

How many Biskits in the sort.

list

The sorted list.