lib.sort: Make doc consistent with sortOn
This commit is contained in:
parent
7438f4e0de
commit
50793752a7
|
@ -596,8 +596,11 @@ rec {
|
||||||
default comparison on a function-derived property, and may be more efficient.
|
default comparison on a function-derived property, and may be more efficient.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
sort (a: b: a < b) [ 5 3 7 ]
|
sort (p: q: p < q) [ 5 3 7 ]
|
||||||
=> [ 3 5 7 ]
|
=> [ 3 5 7 ]
|
||||||
|
|
||||||
|
Type:
|
||||||
|
sort :: (a -> a -> Bool) -> [a] -> [a]
|
||||||
*/
|
*/
|
||||||
sort = builtins.sort or (
|
sort = builtins.sort or (
|
||||||
strictLess: list:
|
strictLess: list:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user