title: Groovy: How to sort String array of text+numbers by last digit
body: <p>I have array like this:</p>
  
  <pre><code>    def arr = [ 
        "v3.1.20161004.0",
        "v3.1.20161004.1",
        "v3.1.20161004.10",
        "v3.1.20161004.11",
        "v3.1.20161004.2",
        "v3.1.20161004.3",
        "v3.1.20161004.30",
      ]
  </code></pre>
  
  <p>I need to get this:</p>
  
  <pre><code>    def arr = [ 
        "v3.1.20161004.0",
        "v3.1.20161004.1",
        "v3.1.20161004.2",
        "v3.1.20161004.3",
        "v3.1.20161004.10",
        "v3.1.20161004.11",
        "v3.1.20161004.30",
      ]
  </code></pre>
  
  <p>How to sort it by last number '.x' ?</p>