diff --git a/content/xul/templates/src/nsXULSortService.cpp b/content/xul/templates/src/nsXULSortService.cpp index c1a967e5bfed..1a545fd393b7 100644 --- a/content/xul/templates/src/nsXULSortService.cpp +++ b/content/xul/templates/src/nsXULSortService.cpp @@ -559,10 +559,10 @@ XULSortServiceImpl::GetSortColumnIndex(nsIContent *tree, const nsString &sortRes if (value == sortResource) { sortColIndex = colIndex; - found = PR_TRUE; if (!sortDirection.EqualsIgnoreCase("natural")) { + found = PR_TRUE; setFlag = PR_TRUE; // secondary sort info is optional diff --git a/rdf/content/src/nsXULSortService.cpp b/rdf/content/src/nsXULSortService.cpp index c1a967e5bfed..1a545fd393b7 100644 --- a/rdf/content/src/nsXULSortService.cpp +++ b/rdf/content/src/nsXULSortService.cpp @@ -559,10 +559,10 @@ XULSortServiceImpl::GetSortColumnIndex(nsIContent *tree, const nsString &sortRes if (value == sortResource) { sortColIndex = colIndex; - found = PR_TRUE; if (!sortDirection.EqualsIgnoreCase("natural")) { + found = PR_TRUE; setFlag = PR_TRUE; // secondary sort info is optional