Entryset Sorter
Introduction
The Entryset Sorter sorts entries in an entryset based on a specified sort characteristic and attribute order. Once an entryset is connected, its entries can be sorted based on a selected attribute and data type in ascending or descending order. It is possible to specify up to three attribute sorts, in which case the sorting logic works like Excel's "then by", utilizing additional attributes to resolve sorting "ties".
Specifying Data Types
For each sort, you can specify which data type to treat the attribute data as. The data type options are limited to what is available and guaranteed for all items in a specified attribute. For example, if all of the contents of the "Date" attribute in the incoming entryset are guaranteed to completely convert to either dates or text, you must specify whether Entryset Sorter should use date or text comparisons. This can be significant: 'August' comes before 'July' if text comparisons are used.
Property Panel:
Sort By
- Attribute
- Specifies which Attribute to sort by.
- Type
- The data type by which comparisons are made. The 'Type' setting always defaults to the most specific guaranteed data type for that Attribute.
- Ascending or Descending
- Specifies the direction of the attribute sort order.
Then By
Additional sorting criteria.
- Only output the
- Limit the output to a certain number of entries from the beginning or end of the entryset.
Input Menu:
Set Entryset
Sets the entryset to be sorted.
Accepted Datatypes:
- Entryset
Triggered Outputs:
- Output Message:
- Get Sorted Entry Set
Set Sort By → [Attribute] (Dynamic Menu)
Sets which attribute to sort by.
Accepted Datatypes:
- True/false
- True for ascending order; false for descending order.
Triggered Outputs:
- Output Message:
- Get Sorted Entryset
Toggle Sort Order For → [Attribute] (Dynamic Menu)
Sets the sort order for the [Attribute] as ascending or descending.
Accepted Datatypes:
- True/False
- True for ascending order; false for descending order.
Triggered Outputs:
- Output Message:
- Get Sorted Entryset
Output Menu:
Get Sorted Entryset
Gets the resulting sorted Entryset.
Output Datatype:
- Entryset
Triggered By:
- Input Message:
- Set Entryset
- Input Message:
- Sorts → Toggle [Attribute] Sort Order
- Action:
- Fire-On-Connect