how to sort items in a list alphabetically by the letters in their respective names.
<p>I am trying to sort values in a list by the letters in their name: I want, for example,  ["8a", "8c", "8b", "8d"] to become ["8a", "8b","8c", "8d"]. Does this have something to do with a key?</p>

<p>That would solve solve your problem:</p>

<pre><code>_list = ["8a", "8c", "8b", "8d"] 
_list.sort()
print _list
</code></pre>

<p>Output:</p>

<pre><code>['8a', '8b', '8c', '8d']
</code></pre>

python