sort
The following is a list of properties for the function sort
:
Property | Value |
---|---|
brief | Sort values in a list |
category | higher_order_list |
description | This 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. |
functionId | sort |
functionLabel | sort |
pure | true |
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." } |