apoc.coll.sort

Function APOC Core

apoc.coll.sort(coll) sort on Collections

Signature

apoc.coll.sort(coll :: LIST? OF ANY?) :: (LIST? OF ANY?)

Input parameters

Name Type Default

coll

LIST? OF ANY?

null

Usage Examples

The following sorts a collection:

RETURN apoc.coll.sort([5,4,2,3,1]) AS output;
Table 1. Results
Output

[1, 2, 3, 4, 5]