In cypher query i have multiple result which i get using collect now how i can order by collect property in cypher?
MATCH(u:User)
WITH COLLECT({name:u.name,date:u.date}) AS userinfo
RETURN userinfo
OR in the case there are multiple collections that have been merged
MATCH(u:User)-[r:CreatedBy]->(p:Project)
WITH COLLECT({name:p.name,date:p.date}) AS info
MATCH(i:Institue)-[owner:Owner]->(i:Institute)
WITH COLLECT({instituteName:i.name,date:i.date}) AS instituteinfo,info
WITH COLLECT(instituteinfo + info) AS alldata
RETURN alldata
MATCH(u:User)-[r:CreatedBy]->(p:Project) WITH COLLECT({name:p.name,date:p.date}) AS info MATCH(i:Institue)-[owner:Owner]->(i:Institute) WITH COLLECT({instituteName:i.name,date:i.date}) AS instituteinfo,info WITH COLLECT(instituteinfo + info) AS alldata RETURN alldata
in this query i want order by date – Ritesh Tiwari