lib.sort: Make doc consistent with sortOn

This commit is contained in:
Robert Hensing 2023-12-08 20:29:11 +01:00
parent 7438f4e0de
commit 50793752a7

View File

@ -596,8 +596,11 @@ rec {
default comparison on a function-derived property, and may be more efficient.
Example:
sort (a: b: a < b) [ 5 3 7 ]
sort (p: q: p < q) [ 5 3 7 ]
=> [ 3 5 7 ]
Type:
sort :: (a -> a -> Bool) -> [a] -> [a]
*/
sort = builtins.sort or (
strictLess: list: