title: Neo4J Cypher sort descending or ascending according to value
body: <p>Is there any way to choose between ascending or descending according to a property of a node in a single query?</p>
  
  <p>Let's say I got 2 node types A and B. A has a property specifying how I want to sort B's.</p>
  
  <pre><code>MATCH (a:A)-[:has]-&gt;(b:B)
  WHERE a.id=1
  ORDER BY b.name  ----- (I'd like to order ascending if a.asc is true or descending if false)
  </code></pre>