title: Output sorted python dict within django template
body: <p>I got a python dict, that looks like the following (Important informations were replaced with "xxx" due to privacy reasons).
  I would like to display this dict within a django template but it should be ordered, so it should start with "A", then continue with "B" instead of "H"</p>
  
  <p>This is my dict (shortened):</p>
  
  <pre><code>{   'A': [   {'birthday_date': None,
               'first_name': 'Alberto',
               'last_name': 'xxx',
               'name': 'Alberto xxx',
               'uid': xxx},
           {   'birthday_date': None,
               'first_name': 'Antony',
               'last_name': 'xxx',
               'name': 'Antony xxx',
               'uid': xxx}],
  'H': [   {   'birthday_date': '08/28',
               'first_name': 'Hitoshi',
               'last_name': 'xxx',
               'name': 'Hitoshi xxx',
               'uid': xxx}],
  'C': [   {   'birthday_date': '05/07/1985',
               'first_name': 'Chr',
               'last_name': 'xxx',
               'name': 'Chr xxx',
               'uid': xxx}],
  'E': [   {   'birthday_date': None,
               'first_name': 'Edimond',
               'last_name': 'xxx',
               'name': 'Edimond xxx',
               'uid': xxx},
           {   'birthday_date': '08/30',
               'first_name': 'Erika',
               'last_name': 'xxx',
               'name': 'Erika xxx',
               'uid': xxx}],
  'B': [   {   'birthday_date': '08/16/1987',
               'first_name': 'Bhaktin',
               'last_name': 'xxx',
               'name': 'Bhaktin xxx',
               'uid': xxx}],
  'I': [   {   'birthday_date': '08/25/1987',
               'first_name': 'Ivette',
               'last_name': 'xxx',
               'name': 'Ivette xxx',
               'uid': xxx}]}
  </code></pre>
  
  <p>This is my django template:</p>
  
  <pre><code>{% for letter, friend in bdays_all.items %}
      &lt;h2&gt;{{ letter }}&lt;/h2&gt;
      {% for user in friend %}
           ...
      {% endfor %}
  {% endfor %}
  </code></pre>
  
  <p>This works well, but its not ordered. But thats what I need. I tried everything with python's sorted() function but without any successs. I only want to order the letters. Seems trivial but I guess it isn't.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks alot in advance!</p>