if (value.EqualsIgnoreCase("true"))
if (value.Equals(NS_LITERAL_STRING("true")))
XULSortServiceImpl::GetSortColumnInfo(nsIContent *tree, nsAString &sortResource,                                      nsAString &sortDirection, nsAString &sortResource2,                                      PRBool &inbetweenSeparatorSort){  nsresult rv = NS_ERROR_FAILURE;  inbetweenSeparatorSort = PR_FALSE;  nsAutoString value;  if (NS_SUCCEEDED(rv = tree->GetAttr(kNameSpaceID_None, nsXULAtoms::sortActive, value))    && (rv == NS_CONTENT_ATTR_HAS_VALUE))  {    if (value.EqualsIgnoreCase("true"))    {      if (NS_SUCCEEDED(rv = tree->GetAttr(kNameSpaceID_None, nsXULAtoms::sortResource, sortResource))          && (rv == NS_CONTENT_ATTR_HAS_VALUE))      {        if (NS_SUCCEEDED(rv = tree->GetAttr(kNameSpaceID_None, nsXULAtoms::sortDirection, sortDirection))            && (rv == NS_CONTENT_ATTR_HAS_VALUE))        {          rv = NS_OK;          // sort separator flag is optional          if (NS_SUCCEEDED(rv = tree->GetAttr(kNameSpaceID_None, nsXULAtoms::sortSeparators,            value)) && (rv == NS_CONTENT_ATTR_HAS_VALUE))          {            if (value.EqualsIgnoreCase("true"))            {              inbetweenSeparatorSort = PR_TRUE;            }          }          // secondary sort info is optional          if (NS_FAILED(rv = tree->GetAttr(kNameSpaceID_None, nsXULAtoms::sortResource2, sortResource2))              || (rv != NS_CONTENT_ATTR_HAS_VALUE))          {            sortResource2.Truncate();          }        }      }    }  }    return rv;}