title: groovy sort with comparator syntax
body: <p>I am just getting my feet wet with gremlin. I understand that gremlin is based on groovy. I found the documentation <a href="http://groovy.codehaus.org/groovy-jdk/java/util/Collection.html#sort%28groovy.lang.Closure%29" rel="noreferrer">here</a>, but I am still not sure what the syntax means.</p>
  
  <p>I am a bit confused as to how the syntax of sort with a comparator works:</p>
  
  <pre><code>m.sort{a,b -&gt; a.value &lt;=&gt; b.value}
  </code></pre>
  
  <p>Could someone explain what all the different bits between the <code>{</code> and <code>}</code> mean? </p>