title: Sorting a python list of semantic versions
body: <p>I have a list of semantic code versions and I would like to sort it based on <a href="https://semver.org/" rel="nofollow noreferrer">semver</a>. Here is an example where the default sort is incorrect:</p>
  <pre><code>['0.0.1', '0.0.2', '0.1.0', '0.10.0', '0.11.0', '0.12.0', '0.13.0', '0.13.1', '0.13.2', '0.14.0', '0.15.0', '0.16.0', '0.17.0', '0.18.0', '0.19.0', '0.2.0']
  </code></pre>
  <p>'0.2.0' should come before '0.10.0'. I know there are semantic libraries but didn't see any examples of how to sort with them, rather they check for validity of the semantic version.</p>