Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Different Number of Products Returned Depending on sortKey

Different Number of Products Returned Depending on sortKey

mjfullstack
Tourist
4 0 1

Excuse the weird nested console grouping, but as you can see in the image below, changing the sortKey value, returns a different number of products in each case; I receive all three products as expected when sorting by CREATED_AT, but only two of the three when sorting by PRICE:

Screenshot from 2021-08-11 12-13-16.png

I have checked that all three products (total) all have all the same attributes (i.e. they all have a price, are active, are available, and connected to the right sales channel) and everything seems to be the same in each case. There is a single item that is consistently not returned when sorting by PRICE. What am I doing wrong? Any help much appreciated.

Replies 2 (2)

Luke_K
Shopify Staff
402 66 103

Hey @mjfullstack 

If you're still affected by this issue, would you happen to have a request_id or the store's products in question in which you're seeing this ? I can take a look - feel free to DM me through the details. Thanks!

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
mjfullstack
Tourist
4 0 1

Hi, thanks, the issue eventually went away. Took a while, but I guess it was just taking more time than usual for item to be properly added.