title: In sort closure, how to get null value last?
body: <p>Hello I am using Grails 2.1 and I have a little problem I can't find a good solution to. I am querying the database for some objects and it returns and sort it as expected with one exception, the null value is first.</p>
  
  <p>Here is the code I may use to query the database:</p>
  
  <pre><code>Object.findAllByObjectTypeAndDateBetween(ObjectType.REGULAR, startDate, stopDate).sort {it.str}
  </code></pre>
  
  <p>Is there any way I can sort by the strings and getting all null values last instead of first? I am looking for a simple way, not like this:
  <a href="https://stackoverflow.com/questions/5787855/grails-hibernate-how-to-order-by-isnullproperty-to-get-nulls-last">Grails/Hibernate: how to order by isnull(property) to get NULLs last?</a></p>
  
  <p>Thanks.</p>