Given the movies data set as an example:
WHERE toLower(p1.name) = toLower('Tom Hanks') AND toLower(p2.name) = toLower('Halle Berry')
return relationships(path) AS relationships, nodes(path) AS nodes
I'm trying to sort the roles array for each step of the path. When I've needed to do this on nodes, I've used the UNWIND keyword, but that doesn't seem to work on paths.