Name

sort — Sorts a List according to the YCP builtin predicate

Synopsis

list sort ( list LIST );
 

Parameters

list LIST

Return

list

Sorted list

Description

Sorts the list LIST according to the YCP builtin predicate. Duplicates are not removed.

Usage

  sort ([2, 1, true, 1]) -> [true, 1, 1, 2]