Fixed bug when combining path expressions and order by in Cypher.
Merge pull request #3230 from pontusmelke/type-bug

[2.2] Fixed bug when combining path expressions and order by in Cypher.