title: freemarker - string comparison - operator not allowed
body: <p>I want to compare two strings to decide whether the first string is 'smaller' than the second string.</p>
  
  <pre><code>&lt;#if name1 &lt;= name2&gt;
  ....
  &lt;/#if&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Can't use operator "&lt;=" on string values.
  </code></pre>
  
  <p>Can this be done in FreeMarker? Is it possible to call the <code>String.compareTo</code> method in a template?</p>