diff --git a/pynequa/models.py b/pynequa/models.py index 32d8170..5cff155 100644 --- a/pynequa/models.py +++ b/pynequa/models.py @@ -151,6 +151,7 @@ class QueryParams(AbstractParams): open_params: Optional[List[OpenParams]] = field(default_factory=lambda: []) page: Optional[int] = 1 page_size: Optional[int] = 10 + sort: Optional[str] = None tab: Optional[str] = None scope: Optional[str] = None basket: Optional[str] = None @@ -214,6 +215,9 @@ def _prepare_query_args(self, query_name: str) -> Dict: else: params["pageSize"] = self.page_size + if self.sort is not None: + params["sort"] = self.sort + if self.tab is not None: params["tab"] = self.tab