diff --git a/docs/en/functions/array_functions.md b/docs/en/functions/array_functions.md index 6993132f423..a5d1d949217 100755 --- a/docs/en/functions/array_functions.md +++ b/docs/en/functions/array_functions.md @@ -313,6 +313,15 @@ If multiple arguments are passed, it counts the number of different tuples of el If you want to get a list of unique items in an array, you can use arrayReduce('groupUniqArray', arr). + +## arraySort(arr) + +Returns new array as result of sorting the elements of `arr` in ascending order. + +## arrayReverseSort(arr) + +Returns new array as result of sorting the elements of `arr` in descending order. + ## arrayJoin(arr) A special function. See the section ["ArrayJoin function"](array_join.md#functions_arrayjoin). diff --git a/docs/ru/functions/array_functions.md b/docs/ru/functions/array_functions.md index 79818574fd7..a115ab2a012 100644 --- a/docs/ru/functions/array_functions.md +++ b/docs/ru/functions/array_functions.md @@ -301,6 +301,14 @@ SELECT arraySlice([1, 2, 3, 4, 5], 2, 3) AS res Если необходимо получить список уникальных элементов массива, можно воспользоваться arrayReduce('groupUniqArray', arr). +## arraySort(arr) + +Возвращает отсортированный в восходящем порядке массив `arr` + +## arrayReverseSort(arr) + +Возвращает отсортированный в нисходящем порядке массив `arr` + ## arrayJoin(arr) Особенная функция. Смотрите раздел ["Функция arrayJoin"](array_join.md#functions_arrayjoin).