title: Sort dict of dict in jinja2 loop
body: <p>How can I sort a dict like</p>
  
  <pre><code>my_dict = {
      'abc': {'name': 'B', 'is_sth': True},
      'xyz': {'name': 'A', 'is_sth': True}
  }
  </code></pre>
  
  <p>by <code>name</code> in Jinja?</p>
  
  <p>I've tried <code>{% for id, data in my_dict|dictsort(by='value') if data.is_sth %}</code> but doesn't work as I expect.</p>