From a8087a9dbb8b24b451bfaa5d31e07e9b5574226d Mon Sep 17 00:00:00 2001 From: Daniel Csillag Date: Tue, 11 Apr 2023 07:48:17 -0300 Subject: Array sorting by key (#584) --- docs/src/reference/types.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/src') diff --git a/docs/src/reference/types.md b/docs/src/reference/types.md index 312ba7c0..427b1a79 100644 --- a/docs/src/reference/types.md +++ b/docs/src/reference/types.md @@ -657,6 +657,8 @@ Combine all items in the array into one. ### sorted() Return a new array with the same items, but sorted. +- key: function (named) + If given, applies this function to the elements in the array to determine the keys to sort by. - returns: array # Dictionary -- cgit v1.2.3