* ui_ux: => 0
* type: => Uncategorized
* severity: => Normal
* easy: => 0
Comment:
I'd like to point out that SortedDict doesn't solve the problem as it
requires the keys to be inserted in their intended order to begin with.
If I'm making a deep dictionary to print a complicated table, but am
inserting things in an arbitrary order (or received it that way), I now
need to also walk my dictionary and resort everything. And then walk it
again to render it.
It would be SOOO much simpler if I were able sort it arbitrarily at render
time in the template.
--
Ticket URL: <https://code.djangoproject.com/ticket/15583#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by anonymous):
I have a similar problem, I have a complex dictionary and would be
incredibly easy to sort at render time by key or value(s), The SortedDict
does not solve my problem. It requires me to change my data to a list of
tuples, which would cause a work around but is causing me headaches as I
am using javascript libraries to visualize this large complex data. For
some reason the built - in (Python) Sorted is not working from within a
view - which i don't quite understand but these problems seem to stem
from Django not python
--
Ticket URL: <https://code.djangoproject.com/ticket/15583#comment:3>