I need to sort a collection, then do other stuff. Here is what the start of my query looks like:
match ()-[r]-(n)-[s:STATE]->()
// order by s.from ??
with collect(s) as states
// do stuff
Is there a way to use ORDER BY
with WITH
or does it only work with RETURN
?
See also: this and this other question