title: Sort by last 3 digits
body: <p>I have a list like:</p>
  <pre><code>barcode = [&quot;13350V1&quot;,&quot;13350V10&quot;,&quot;13350V2&quot;,&quot;13350V20&quot;]
  </code></pre>
  <p>I want to sort this list based on the last three digits, so the result would be:</p>
  <pre><code>newbarcode = [&quot;13350V1&quot;,&quot;13350V2&quot;,&quot;13350V10&quot;,&quot;13350V20&quot;]
  </code></pre>
  <p>Now I am able to do this using the script below, but I am not exactly sure what does this mean (x: <code>str(x)[-3]</code>) and appreciate your help in this regard.</p>
  <pre><code>newbarcode = sorted(barcode, key=lambda x: str(x)[-3])
  </code></pre>