sort

The following is a list of properties for the function sort:

PropertyValue
briefSort values in a list
categoryhigher_order_list
descriptionThis produces a list with values sorted based on result of compareFunction. The compareFunction is passed two values from the list and must return an integer less than 0 if the first value is less than the second value, 0 if they are equal, and a integer greater than 0 if the first value is greater than the second value.
functionIdsort
functionLabelsort
puretrue
parameters[ { "dataType": "function", "dataTypeParameter": "(value1: any, value2: any): integer", "description": "This function is called with two value from list.", "name": "compareFunction" }, { "dataType": "list", "description": "This is the list to sort.", "name": "list" } ]
returns{ "dataType": "list", "description": "This the the resulting sorted list." }