Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
12-12-2018 03:53 PM
I'm using <apoc.coll.sortNodes(collect(i),'event_date') as elems> to sort my nodes but I want to sort on multiple properties like event_date and priority. Is it possible with apoc.coll.sortNodes?
Regards,
Sandip
12-12-2018 04:01 PM
You'll want to use apoc.coll.sortMulti()
, however this will use the node properties maps rather than the nodes themselves, so you won't be able to do additional things with the items in the collection that you could normally do with nodes (match from them, use them in pattern expressions, get their graph id, visualize results in the graphical view). There is a workaround you can use to get around that if needed.
12-12-2018 04:20 PM
Thanks Andrew, this solved my problem.
Regards,
Sandip
All the sessions of the conference are now available online