  
          if i not in ordering_field_columns:
              o_list.insert(0, make_qs_param(new_order_type, i))
  
          o_list = '.'.join(o_list)
  
          yield {
              "text": text,
              "sortable": True,
              "ascending": order_type == "asc",
 
</s> remove             "url": cl.get_query_string({ORDER_VAR: o_list}),
 </s> add             "url_primary": cl.get_query_string({ORDER_VAR: '.'.join(o_list_primary)}),
            "url_remove": cl.get_query_string({ORDER_VAR: '.'.join(o_list_remove)}),
            "url_toggle": cl.get_query_string({ORDER_VAR: '.'.join(o_list_toggle)}), </s> remove             o_list.insert(0, make_qs_param(new_order_type, i))
 </s> add             o_list_primary.insert(0, make_qs_param(new_order_type, i)) </s> remove                 o_list.append(make_qs_param(ot, j))
 </s> add                 param = make_qs_param(ot, j)
                o_list_primary.append(param)
                o_list_toggle.append(param)
                o_list_remove.append(param) </s> remove                 o_list.insert(0, make_qs_param(new_order_type, j))
 </s> add                 o_list_primary.insert(0, param)
                o_list_toggle.append(param)
                # o_list_remove - omit
  
          if i not in ordering_field_columns:
              o_list.insert(0, make_qs_param(new_order_type, i))
  

  
          yield {
              "text": text,
              "sortable": True,
              "ascending": order_type == "asc",
keep keep keep keep replace keep keep keep keep keep
 Improved UI for advanced sorting controls.

Now allows individual fields to be removed/toggled.

Refs #11868

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16320 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/admin/templatetags/admin_list.py