I'm sure this is an easy cypher query, but I'm relatively new to cypher, so apologies ahead of time, but I can't find a previously asked question.
If I have a bunch of nodes connected like this: (:Start)-[:NEXT]->(step1)-[:NEXT]->(step2)-[:NEXT]->(step3)-[:NEXT]->etc.
And I want to return all the nodes in this group, I can write this: match (s:Start)-[:NEXT*]->(steps) return s, steps
But what if I want to order them by their distance from the starting node? Is there a characteristic I an apply order by to or is it more complicated than that?
Thanks