apoc.coll.sortText

Function

apoc.coll.sortText(coll LIST<STRING>, conf MAP<STRING, ANY>) - sorts the given LIST<STRING> into ascending order.

Signature

apoc.coll.sortText(coll :: LIST<STRING>, conf = {} :: MAP) :: LIST<ANY>

Input parameters

Name Type Default

coll

LIST<STRING>

null

conf

MAP

{}

Usage examples

The following sort a list of strings:

// n.b. if no locale is provided it takes the default of the machine where neo4j is running on
RETURN apoc.coll.sortText(['Єльська', 'Гусак'], {locale: 'ru'}) as output;
Table 1. Results
Output

Гусак

Єльська