title: How to sort result in a Datalog query
body: <p>I am using datomic with play framework. Play is amazing and datomic is fast. So a good combination overall. Since, I am new to datomic (and datalog i.e. query language datomic uses), I am unable to sort my result ( like we do, order by in sql). For example.</p>
  
  <p>if my query is : </p>
  
  <pre><code>q= [:find ?title 
  :where 
  [?e :movie/title ?title]
  [?e :movie/director "Dave Swag"]
  [?e :movie/year ?year]
  [(sort ?year)] //here I am trying to sort by year
  ]
  </code></pre>
  
  <p>It should return titles of the movies whose director was Dave Swag and result is ordered by year in which image was released. Thankyou :)</p>