Bug 424038 - Assertion thrown when setting query.sort to SORT_BY_ANNOTATION_* (for ondrej@allpeers.com, r=dietrich)

This commit is contained in:
dietrich@mozilla.com 2008-04-06 10:11:41 -07:00
parent 323c9fb10a
commit b54b546a08

View File

@ -3242,6 +3242,11 @@ PlacesSQLQueryBuilder::OrderBy()
if (mHasDateColumns)
OrderByColumnIndexDesc(nsNavHistory::kGetInfoIndex_ItemLastModified);
break;
case nsINavHistoryQueryOptions::SORT_BY_TAGS_ASCENDING:
case nsINavHistoryQueryOptions::SORT_BY_TAGS_DESCENDING:
case nsINavHistoryQueryOptions::SORT_BY_ANNOTATION_ASCENDING:
case nsINavHistoryQueryOptions::SORT_BY_ANNOTATION_DESCENDING:
break; // Sort later in nsNavHistoryQueryResultNode::FillChildren()
default:
NS_NOTREACHED("Invalid sorting mode");
}