Did you know ... Search Documentation:
Pack prolog_library_collection -- prolog/sort_ext.pl
PublicShow source
 order_by2(+Spec:list(compound), :Goal_0) is det
 predmsort(:Compare_2, +Original:list, -Sorted:list) is det
See also
- Like predsort/3, but using msort/2.
 sort_stream(+In:istream, -Out:ostream) is det
 sort_stream(+In:istream, -Out:ostream, +Options:options) is det
Arguments:
Options- The following options are supported:
buffer_size(+nonneg)
Optionally, the size of the buffer in kilobytes.
duplicates(+boolean)
Whether duplicates are allowed in the result. Default is `true'.
numeric(+boolean)
Whether numberic sort is performed. Default is `false'.
output(+atom)
The name of the output file, as processed by `absolute_file_name/[2,3]'. Default is the input file.
temporary_directory(+atom)
The directory that is used for storing intermediary results of sorting. Default is the value of setting `temporary_directory'.
threads(+positive_integer)
The number of threads that is used. Default is the number of available processors, but not larger than 8. Larger numbers have diminishing returns. Using $n$ threads increases the memory use by $\log n$.
utf8(+boolean)
Whether the environment is set to UTF-8 encoding. Default is `false'.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 sort_stream(Arg1, Arg2, Arg3)