Numbers Exercises

SORT in Apple Numbers

Last updated:

Short answer: SORT sorts a range. Syntax: SORT(array, sort-index, sort-order, sort-by)

Explanation

SORT sorts a range. With no further arguments it sorts by the first column, ascending. Use the third argument for direction: 1 is ascending, -1 is descending. The result is a new array; the original cells stay unchanged.

Syntax

SORT(array, sort-index, sort-order, sort-by)

Example

Sort the product names in A2:A5 alphabetically and join them with a comma and a space between them.

Table 1
ABC
1ProductPriceQty
2Apple410
3Pear65
4Kiwi122
5Grape83

Formula: =TEXTJOIN(", ",TRUE,SORT(A2:A5))
Result: Apple, Grape, Kiwi, Pear

Frequently asked questions

What does SORT do in Apple Numbers?

SORT sorts a range. With no further arguments it sorts by the first column, ascending. Use the third argument for direction: 1 is ascending, -1 is descending. The result is a new array; the original cells stay unchanged.

What is the syntax of SORT?

The syntax is SORT(array, sort-index, sort-order, sort-by).

More in this category

Read more

Practise it yourself

Type the formula yourself in a real exercise and see right away if your answer is correct. The first exercises are free.

Start practising