A{% for x in scalar|dictsort %}{{ x }}{% endfor %}A{% for x in number|dictsort %}{{ x }}{% endfor %}A{% for x in array|dictsort:"1" %}{{ x.0 }}{% endfor %}{% for x in hash|dictsort:"name" %}{{ x.val }}{% endfor %}A{% for x in hash|dictsort:"val" %}{{ x.val }}{% endfor %}A