Yes, you have to sort by the column you are regrouping--the regrouping
doesn't change the position of the rows.

Good example here: http://www.djangoproject.com/documentation/templates/

On Aug 14, 9:18 pm, Carl Karsten <[EMAIL PROTECTED]> wrote:
> Collin Grady wrote:
> > Regroup generates a list of dicts with two keys - grouper (the value
> > of the field you're grouping by) and list (the list of objects that
> > match that)
>
> > So in this case, you get entries like {'grouper': <User: John Smith>,
> > 'list': [<Poem: Roses are red>, <Poem: Violets are blue>, ...]}  :)
>
> why is it call regroup and not just group?  The original data set does not 
> need
> to be sorted/grouped, right?
>
> Carl K


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to