Sort List¶
-
class
node_list_operations.
SortList
[source]¶ Sort List of items using a Python key function that determines order. For details about how to write the key function see: Key functions. Have a look at the Data type APIs to see what methods and attributes are available on the data type that you are working with.
Example with port type == [adaf] and item type == adaf:
Sorting input produced by Random ADAFs:
lambda item: item.meta[‘meta_col0’].value()Inputs: - list : [<a>]
List to be sorted
Outputs: - list : [<a>]
Sorted List
Configuration: - sort_function
Python key function that determines order.
- Reverse order
Use descending (reverse) order.