Output Sorted Python Dict Within Django Template
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 templ
Solution 1:
Dictionaries are unsorted.
You will need to convert your dict to a nested list in the view: the easiest way would be just to call sorted(bdays_all.items())
.
Post a Comment for "Output Sorted Python Dict Within Django Template"