title: How to render an ordered dictionary in django templates?
body: <p>I'm trying to learning django templates but it's not easy.<br />
  I have a certain views.py containing a dictionary to be rendered with a template. The dictionary is made of key-value pairs, where key are unique names and values are some values associated to those names. I render the dictionary in the following way:</p>
  
  <pre><code>return render_to_response('results.html', {'data': results_dict})
  </code></pre>
  
  <p>Now my problem is that in my template I need to display the names in alphabetical (or ASCIIbetical) order with the relatives values.<br />
  Actually in my template I have:</p>
  
  <pre><code>&lt;table&gt;
  {% for key, value in data.items %}
      &lt;tr&gt;
          &lt;td&gt; {{ key }}: &lt;/td&gt; &lt;td&gt; {{ value }} &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>How can I render the data in sorted way?
  Many thanks.</p>