Commit 6e29172b authored by Antoine Millet's avatar Antoine Millet
Browse files

[bug#4021] Fixed bug with sorting operator with reverse order.

parent 37887fd0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -752,7 +752,7 @@ class TqlParser(object):

        # Add the tag name to the list of tags to get:
        self._to_check.add(word[1])
        self._to_show.append(word[1])
        self._to_show.append(word[1].lstrip('-'))

        return TqlAstTag(word[1])

@@ -761,8 +761,8 @@ class TqlParser(object):
        next = self._lexer.look_ahead()

        # Add the tag name to the list of tags to get:
        self._to_get.add(left[1])
        self._to_show.append(left[1])
        self._to_get.add(left[1].lstrip('-'))
        self._to_show.append(left[1].lstrip('-'))

        if next[0] == self._lexer.TOK_OP:
            operator = self._lexer.get_token()