title: Python - Sorting positive and negative numbers in one dictionary
body: <p>I would like to ask you how exactly can I sort keys (integers) in dictionary in "ascending order" , including both positive and negative numbers.</p>
  
  <p>I have this list of sorted numbers (sorted with code below):</p>
  
  <pre><code>01.Key: 06
  02.Key: 07
  03.Key: 21
  04.Key: 59
  05.Key: -26
  06.Key: -17
  07.Key: -7
  08.Key: -6
  </code></pre>
  
  <p>But what I would like to have in output is this sorted list:</p>
  
  <pre><code>01.Key: 06
  02.Key: 07
  03.Key: 21
  04.Key: 59
  05.Key: -6
  06.Key: -7
  07.Key: -17
  08.Key: -26
  </code></pre>
  
  <p>Currently I'm using this code to sort those numbers in ascending order (at least for positive numbers):</p>
  
  <pre><code>sorted_html_output_dict = sorted(html_output_dict.items(), key=lambda x: (x[0] &lt; 0, x), reverse=False)
  </code></pre>
  
  <p>Is there any nifty way of doing this using lambda function or so?</p>
  
  <p>Thank you very much in advance!</p>