diff --git a/kdb-bot/src/bot_graphql/abc/query_abc.py b/kdb-bot/src/bot_graphql/abc/query_abc.py index f389e4c7..028678f6 100644 --- a/kdb-bot/src/bot_graphql/abc/query_abc.py +++ b/kdb-bot/src/bot_graphql/abc/query_abc.py @@ -182,10 +182,10 @@ class QueryABC(ObjectType): if filter is not None: collection = filter.filter(collection) - if page is not None: - collection = page.filter(collection) - if sort is not None: collection = sort.filter(collection) + if page is not None: + collection = page.filter(collection) + return collection