wvW3s‖SORTBY function

Contents
u8gwR‖

# AcwQa‖SORTBY

jCSNU‖Sorts the contents of a range or array based on the values in a corresponding range or array.

### ebLBc‖Syntax

z5wDc‖SORTBY(Range; SortByRange1; SortOrder1 [; SortByRange2; SortOrder2 [; ...] ])

gifyS‖Range: The array or range to sort.

pFvAo‖SortByRange1; SortByRange2;... : range 1, range 2,... are the arrays or ranges to sort on.

aTbCv‖SortOrder1; SortOrder2;... : order 1, order 2,... are the orders to use for sorting. 1 for ascending, -1 for descending. Default is ascending.

s37P8‖Any of the optional arguments can be omitted. An optional argument requires all preceding separators to be present.

### GAZG2‖Examples

jhZ65‖{=SORTBY(A2:C7;A2:A7;1;C2:C7;-1)}

q9cpQ‖Sort the range A2:C7 based on the first column in ascending order and third column in descending order.

#### XAFa7‖Technical information

Lh98N‖This function is available since LibreOffice 24.8.

2C7vt‖This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.SORTBY

Related Topics

fKeqF‖SORTBY wiki page.

SORT

Please support us!