Package osh :: Package command :: Module sort
[frames] | no frames]

Module sort

source code

sort [FUNCTION]

Input objects are sorted before being written to output. If FUNCTION is not provided then input objects are sorted using the default ordering (i.e., based on the cmp function).

If FUNCTION is provided, then sorting is done by applying cmp to values obtained by applying FUNCTION to the input objects.

Functions
 
sort(function=None)
Input objects are sorted before being written to output.
source code
Function Details

sort(function=None)

source code 

Input objects are sorted before being written to output. If function is not provided then input objects are sorted using the default ordering (i.e., based on the cmp function). If function is provided, then sorting is done by applying cmp to values obtained by applying function to the input objects.