How to sort environment variables in python
<p>I am printing environment variables, but there are not printed in a sorted way :</p>

<pre><code>    for variable in os.environ:
        print("   " + variable + "=" + os.environ.get(variable))
</code></pre>

<p>I would like to sort os.environ.  I tried to put os.environ in a list(), but the sort function is not working.</p>

<p>Any clue?</p>

<p>Thank you</p>
