Skip to content

Commit

Permalink
CTD-96: added ordering to product call by external_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroslav committed Sep 17, 2021
1 parent 0f41398 commit 9635583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion livestyled/resource_client.py
Expand Up @@ -900,7 +900,7 @@ def get_products(
external_id: str or None = None
) -> Generator[Product, None, None]:
if external_id:
return self._get_resource_list(ProductSchema, external_id=external_id)
return self._get_resource_list(ProductSchema, external_id=external_id, order_by={'externalId': 'ASC'})
else:
return self._get_resource_list(ProductSchema)

Expand Down

0 comments on commit 9635583

Please sign in to comment.