title: Compare version numbers using jinja2
body: <p>I am using jinja2 template to install/upgrade packages.</p>
  
  <p>The logic was setting a variable for current installed version and compare it with the available version. It was working fine but once we passed in to 10.x, comparison quit working. </p>
  
  <p>Is it possible to cast the variable so it can correctly identify 10.9.8 is greater than 9.8.7?</p>
  
  <p>Thanks</p>
  
  <p><code>current_version=['9.8.7']</code></p>
  
  <p><code>{% if current_version &lt; '10.9.8' %}</code></p>