diff --git a/content/xul/templates/src/nsXULTreeBuilder.cpp b/content/xul/templates/src/nsXULTreeBuilder.cpp index 9ab0166d711..d8d16f8083a 100644 --- a/content/xul/templates/src/nsXULTreeBuilder.cpp +++ b/content/xul/templates/src/nsXULTreeBuilder.cpp @@ -443,6 +443,7 @@ nsXULTreeBuilder::Sort(nsIDOMElement* aElement) mBoxObject->Invalidate(); header->SetAttr(kNameSpaceID_None, nsXULAtoms::sortDirection, dir, PR_TRUE); + header->SetAttr(kNameSpaceID_None, nsXULAtoms::sortActive, NS_LITERAL_STRING("true"), PR_TRUE); // Unset sort attribute(s) on the other columns nsCOMPtr parentContent; @@ -462,6 +463,8 @@ nsXULTreeBuilder::Sort(nsIDOMElement* aElement) if (childTag == nsXULAtoms::treecol && childContent != header) { childContent->UnsetAttr(kNameSpaceID_None, nsXULAtoms::sortDirection, PR_TRUE); + childContent->UnsetAttr(kNameSpaceID_None, + nsXULAtoms::sortActive, PR_TRUE); } } }