#15583: Sorting dict by keys within django template
-------------------------------------+-------------------------------------
Reporter: foxwhisper | Owner: nobody
Type: Uncategorized | Status: closed
Component: Template system | Version: 1.2
Severity: Normal | Resolution: wontfix
Keywords: sort, dict, keys, | Triage Stage:
template, sorting, sorted, | Unreviewed
dictionary | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.7c78f31a0f6c935df97feba85a88e70d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.