ZVON > References > Haskell reference
| Indexes | Syntax | Prelude | Ratio | Complex | Numeric | Ix | Array | >> List << | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: List
Function: sort
Type: Ord a => [a] -> [a]
Description: sort/sortBy implement a stable sorting algorithm
Related: group, groupBy, inits, intersperse, mapAccumL, mapAccumR, nub, nubBy, partition, sortBy, tails, transpose

Example 1

Input: sort [1,3,5,2,4,1]

Output: [1,1,2,3,4,5]

Example 2

Input: sort "Zvon.org"

Output: ".Zgnoorv"