      and ``Unknown``, and ``list`` is the list of people with those genders.
  
      Note that `{% regroup %}`` does not work when the list to be grouped is not
      sorted by the key you are grouping by!  This means that if your list of
      people was not sorted by gender, you'd need to make sure it is sorted before
      using it, i.e.::
  
          {% regroup people|dictsort:"gender" by gender as grouped %}
  
      """
      firstbits = token.contents.split(None, 3)
 
</s> remove     Regroup a list of alike objects by a common attribute.
 </s> add     Regroups a list of alike objects by a common attribute. </s> remove     As you can see, the ``if`` tag can take an option ``{% else %}`` clause that
    will be displayed if the test fails.
 </s> add     As you can see, the ``if`` tag can take an option ``{% else %}`` clause
    that will be displayed if the test fails. </s> remove     # Note: This returns the exact same node on each {% cycle name %} call; that
    # is, the node object returned from {% cycle a b c as name %} and the one
    # returned from {% cycle name %} are the exact same object.  This shouldn't
    # cause problems (heh), but if it does, now you know.
 </s> add     # Note: This returns the exact same node on each {% cycle name %} call;
    # that is, the node object returned from {% cycle a b c as name %} and the
    # one returned from {% cycle name %} are the exact same object.  This
    # shouldn't cause problems (heh), but if it does, now you know. </s> remove     ``if`` tags do not allow ``and`` and ``or`` clauses with the same
    tag, because the order of logic would be ambigous. For example,
    this is invalid::
 </s> add     ``if`` tags do not allow ``and`` and ``or`` clauses with the same tag,
    because the order of logic would be ambigous. For example, this is
    invalid:: </s> remove     of the block are output:

    ::
 </s> add     of the block are output::
    people was not sorted by gender, you'd need to make sure it is sorted
    before using it, i.e.::
      and ``Unknown``, and ``list`` is the list of people with those genders.
  
      Note that `{% regroup %}`` does not work when the list to be grouped is not
      sorted by the key you are grouping by!  This means that if your list of
    people was not sorted by gender, you'd need to make sure it is sorted
    before using it, i.e.::
    people was not sorted by gender, you'd need to make sure it is sorted
    before using it, i.e.::
  
          {% regroup people|dictsort:"gender" by gender as grouped %}
  
      """
      firstbits = token.contents.split(None, 3)
keep keep keep keep replace replace keep keep keep keep keep
 Style and import fixes.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6641 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/template/defaulttags.py