diff --git a/toolkit/components/places/src/nsNavHistory.cpp b/toolkit/components/places/src/nsNavHistory.cpp index 6953e640b371..f6ed405ff7e0 100644 --- a/toolkit/components/places/src/nsNavHistory.cpp +++ b/toolkit/components/places/src/nsNavHistory.cpp @@ -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"); }