diff --git a/shared/qssquery.cpp b/shared/qssquery.cpp index 132e238..a8e17f8 100644 --- a/shared/qssquery.cpp +++ b/shared/qssquery.cpp @@ -281,6 +281,11 @@ QSSQuery QSSQuery::build(QString expression) { throw QSSGeneralException("Two sort statements are illegal"); } + //TODO: hack, since we are not a "filter", we must remove a preceeding (implicit) boolean + if(result.tokens.last().type & BOOL == BOOL) + { + result.tokens.pop_back(); + } result.sortConditions = createSortConditions(value); continue; }