SORT_VALUES
Ultimo aggiornamento: 08/09/2026Restituisce i valori ordinati in ordine numerico.
Sintassi
SORT_VALUES(descending, input)
Argomenti
| Nome | Tipo | Descrizione | Valore predefinito |
|---|---|---|---|
| Decrescente | Boolean | false | |
| Inserisci | numerico |
Restituisce
Restituisce lo stesso dell'inserisci.
Esempi
| decrescente | inserisci | Output |
|---|---|---|
| false | null::double | null |
| false | array["b", "c", "a"] | [a, b, c] |
| true | array["b", "c", "a"] | [c, b, a] |
| false | null::double | null |
| false | array[4, 2, 14] | [2, 4, 14] |
| false | array[1000.1, 1.2, 0.1] | [0.1, 1.2, 1000.1] |
| true | array[4, 2, 14] | [14, 4, 2] |