title: How to sort a list of objects in a template in alphabetic order?
body: <p>I want to display a list of objects in a Django generic display view <code>ListView</code> class. And, to make it prettier, I try to sort it in alphabetic order. So, I use the built-in <code>dictsort</code> tag to sort the list.</p>
  
  <p>Here is the summary of the code I used:</p>
  
  <pre><code>{% for item in object_list|dictsort:"name" %}
    ...
  {% empty %}
    ...
  {% endfor %}
  </code></pre>
  
  <p>The problem is that it sorts the names according to the ASCII values of the characters, meaning that bigcaps and smallcaps are sorted differently. Here is an example:</p>
  
  <pre><code>Bob
  Eve
  alice
  zoe
  </code></pre>
  
  <p>And, what I would like to have is the following:</p>
  
  <pre><code>alice
  Bob
  Eve
  zoe
  </code></pre>
  
  <p>I looked the documentation and several questions in SO, with no success. So, if someone has a way to achieve this, I would be extremely grateful.</p>