apoc.coll.sortText

Function APOC Core

apoc.coll.sortText(coll) sort on string based collections

Signature

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

Input parameters

Name Type Default

coll

LIST? OF 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

Гусак

Єльська