I have a query (below) that returns collections of nodes containing create dates. I want to sort the rows by newest create date. Some of the rows have one create date, other rows have several. As can be seen, the node "name4" should be first. What corrections should I make to my query? Thanks.
MATCH (node:node)
WITH node
ORDER BY node.created DESC
RETURN count(node.name) AS count, node.name, collect(node.created) AS created
count node.name created
3 "name1" [1410234609620,1410234606534,1410234506799]
1 "name2" [1410234434936]
1 "name3" [1410234454573]
2 "name4" [1410463902552,1410460561481]
1 "name5" [1410234485185]
2 "name6" [1410234548527,1410234525740]