Skip to product information
Sort collections by recent sales with Sidekick
Published:2026.11.27

[Sidekick] Sort manually ordered collections by net sales or units sold over a set period (several collections at once)

This TIPS shows how to sort a collection with a manual sort order by net sales or by units sold over a period you choose, such as the last 30, 60 or 90 days. Ask Sidekick in the Shopify admin, and it totals the sales and arranges the products in that order. Several collections can be sorted in a single request.


One request sorts three collections by sales

One request sorts three collections by net sales over the last 90 days

In this example, "Men's Outerwear", "Men's Tops" and "Men's Bottoms" were sorted by net sales over the last 90 days. Products with no sales (¥0) stay at the end in their original order. The sort order is saved as "Manual".


How this differs from the built-in "Best selling"

Built-in Best selling vs. sorting with Sidekick

Collections have a "Best selling" sort order, but there is no setting for the period or the basis (amount or units) (TIPS on how Best selling works). When you want to bring forward what is selling right now, for example after a sale or a season change, tell Sidekick the period and let it sort.


Step 1: Tell Sidekick the conditions and have it show the sales data first

Step 1: the evidence table and ShopifyQL Sidekick shows before sorting

◆What to include in the request
・The collection names (one or more)
・The period (for example, the last 90 days)
・The basis (net sales, or units sold)
・How to handle products with no sales (for example, keep them at the end in their current order)
・"Before sorting, show me the sales data you used (period, product, net sales, units sold) as a table for each collection"

◆What you get back
・The period used. In this test Sidekick stated "the 90 days from Aug 27 to Nov 24, 2026 (JST), excluding today"
・A table in the new order. Units sold are net of returns
・Below the answer, the ShopifyQL query it ran (FROM sales SHOW net_sales, net_items_sold …) and its result, so you can check which data the order is based on


Step 2: Review everything on one screen and publish

Step 2: review all three collection changes and publish together

◆Start the review
・Click "Start review" on the "Store changes" card under the answer
・The review screen lists each collection on its own row. "Sort order" is MANUAL and "Product moves" shows each product's new position

◆Publish
・Click "Publish all changes" at the top right to apply all three collections at once. The card changes to "Published" when it is done
・To cancel before publishing, click "Discard" on the card


What to know after sorting

Three things to know after sorting

◆The order does not update by itself
・The sort order is saved as Manual, so later sales do not change it. Sidekick itself says it will not update automatically with future sales
・Repeat the same request on a schedule, for example once a month

◆Products with the same value
・Without instructions, two products with the same net sales kept their original order
・Asking "if units are equal, put higher net sales first" was followed as requested

◆Going back
・Asking Sidekick to "go back to the state before the sort" made it report the previous setting (Best selling in this test) and prepare a change that restored that setting
・It is still a good idea to note the collection's sort order setting before you sort

◆Works with automated collections too
・All six collections in this test were automated collections based on tags. Products are still gathered by the conditions, and only the sort order was switched to manual


The purchase bonus includes the Sidekick requests (by net sales, by units sold, checking after publishing, and going back to the previous order).

After making a purchase (all items are ¥0), you will be able to view the sample code.

View store information

[Sidekick] Sort manually ordered collections by net sales or units sold over a set period (several collections at once)

If you have already made a purchase, please login here.

Sample Codes

Sidekick 用プロンプト ①純売上順(複数コレクションをまとめて)

【 】の中を書き換えて、Sidekick に貼り付けて送信してください。コレクションは1つでも、複数でもかまいません。

Sidekick 用プロンプト ②販売個数順(同じ数のときのルールつき)

販売個数は、返品を差し引いた数で並べます。

すべてのShopify TIPS

View all