擅长:python、mysql、java
<p><code>key</code>根据其在<code>COURT_ORDER</code>中的<code>[0]</code>项第一次出现的<code>index</code>项:</p>
<pre><code>data = [('Second Circuit', 34), ('Ninth Circuit', 24), ('Third Circuit', 4), ('Eleventh Circuit', 2)]
sorted(data, key = lambda x: COURT_ORDER.index(x[0]))
</code></pre>