.. _`Sort List`: .. _`org.sysess.sympathy.list.sortlist`: Sort List ````````` .. image:: sort_list.svg :width: 48 Sort List using a key function. Documentation ::::::::::::: 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 :ref:`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() NaN values are treated as larger than any other value. Definition :::::::::: Input ports ........... **list** [] List to be sorted Output ports ............ **list** [] Sorted List Configuration ............. **Reverse order** (reverse) Use descending (reverse) order. **Compare function for sorting:** (sort_function) Python key function that determines order. Examples ........ * :download:`SortList.syx ` Implementation .............. .. automodule:: node_list_operations :noindex: .. class:: SortList :noindex: