Package: Sort

Author: HCA Central
Version: 1
Added to Library: 11-Nov-23
HCAVersion needed: 17
Keywords: Utility

Package Description:
Also includes the SortIndex program. Rather than create a sorted list, creates a list of the indexes into the data in sorted order. For example given this as the input: dog,cat,beaver,zebra

Sort creates the list: beaver,cat,dog,zebra

SortIndex creates this list: 3,2,1,4

Program: Find Max

Program Description:
Finds the maximum value from items in a comma seperated string. The second argument is the type of datain the string: "string", "number", "datetime"

Return value: The max value

Parameters:

Name Type Description Default
Data Value Comma separated string of items  
DataType Value "number" or "string" or "datetime"  

Program: Sort

Program Description:
Sorts a CSV list into decending order.

Parameters:

Name Type Description Default
Data Value Comma separated string of items  
DataType Value "number" or "string" or "datetime"  

Program: SortIndex

Program Description:
Sorts a CSV list into decending order. The result is not the sorted data but the a CSV list that is the index into the data.

Parameters:

Name Type Description Default
Data Value Comma separated string of items  
DataType Value "number" or "string" or "datetime"