Python: Sorting a list of strings by string template?
<p>Say I have a list containing strings that look like this:</p>

<pre><code>"00x000s00g00wfds0d"
"dkdf00sdf00sdfg00jk"
"kf00dfjkd0sdl0sd0f0"
</code></pre>

<p>etc... random letters intermixed with 0's.</p>

<p>but I want to sort them by their 0's. By this I mean, I want the sorted list to look something like this:</p>

<pre><code>"00jksdn0sdf00dfgdfvb"
"00sdkml0dfg00egbfnnv"
"00myvcb0xfb00dfgdrhd"
</code></pre>

<p>Where I arrange things in groups of their relative positions of 0's. Apologies if this doesn't make much sense.</p>
