How to iterate through sorted iterable in Python
<p>Let's say S is an iterable where each subelement is not necessarily sorted. Normally I might do</p>

<pre><code>for element in S:
    element=sorted(element)
    ...
</code></pre>

<p>Is there a way to do something like</p>

<pre><code>for sorted(element) in S:
    ...
</code></pre>
