apoc.coll.sortMulti

Function

apoc.coll.sortMulti(coll, ['^name','age'],[limit],[skip]) - sort list of maps by several sort fields (ascending with ^ prefix) and optionally applies limit and skip

Signature

apoc.coll.sortMulti(coll :: LIST? OF MAP?, orderFields = [] :: LIST? OF STRING?, limit = -1 :: INTEGER?, skip = 0 :: INTEGER?) :: (LIST? OF ANY?)

Input parameters

Name Type Default

coll

LIST? OF MAP?

null

orderFields

LIST? OF STRING?

[]

limit

INTEGER?

-1

skip

INTEGER?

0