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>You can accomplish this by sorting it by a list.</p>

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

python