Filtering and sorting orderssimilar to
Shopify
A commerce admin’s orders list, cut down the way merchants actually work: switch to a saved view such as Unfulfilled, add a filter from a single "Search and filter" bar, then reorder and group what is left. Every chip edits in place, every change applies at once, and the rows really re-sort, regroup and recount as you go. The admin around the orders card is a wireframe sketch where your own app goes.
Every screen
The 8 steps in order. Pick one to open it in the preview above.
Installation
Part of shadcn/ui Pro
Pro unlocks one-command install of every flow in Radix UI, Base UI and React Aria, plus all 507 blocks, the Figma kit, themes and the MCP server for your AI editor.
Part of shadcn/ui Pro
Pro unlocks one-command install of every flow in Radix UI, Base UI and React Aria, plus all 507 blocks, the Figma kit, themes and the MCP server for your AI editor.
Why this flow works
An orders table narrowed in three layers: a saved view, a "Search and filter" bar that turns fields into chips, and one panel for sort order, batch grouping and visible columns.
Views first, filters on top
The switcher at the start of the toolbar holds the presets merchants use every day (All, Unfulfilled, Unpaid, Open, Archived). A view swaps the base list; filters and search narrow whatever the view holds, so "Unfulfilled · Payment status is Paid" needs one pick and one tick.
One bar for search and filters
Instead of a pill per field, a single "Search and filter" bar opens a list of fields with a search box on top. Typing either narrows the fields or, on Enter, searches order numbers, customers and tags. Picked fields become chips that read like a sentence and reopen their own editor.
Editors shaped by the values
Closed lists (payment status, delivery method, destination) get checkboxes plus Is / Is not, and apply on every tick. Numbers (order total, item count) get a minimum and a maximum with validation. A chip with nothing chosen disappears when its editor closes.
Sorting that really reorders
One menu holds the sort field and the direction, phrased for the field ("Highest first" for totals, "Newest first" for dates, A–Z for names). Column headers sort too and show the arrow. Group by batch splits the rows into fulfillment batches, and the columns list hides or shows any column.
Step by step
- 01
All orders
The full list: every order with its payment and fulfillment status, under a sketched strip of today’s numbers.
The view switcher, the search-and-filter bar and the Sort button are all visible before anything is filtered.
- 02
Pick a view
The view menu lists All, Unfulfilled, Unpaid, Open and Archived with a check on the current one.
Saved views answer the everyday questions in one click and give filters a sensible starting set.
- 03
Unfulfilled orders
The list drops fulfilled, cancelled and archived orders; the footer counts what is left.
The view label in the toolbar says which preset is on, so a filter added next reads on top of it.
- 04
Choose a field
A search box over the filterable fields: payment, fulfillment, delivery and return status, order total, delivery method, destination, sales channel, tags and number of items.
One list scales to many fields without a row of pills. Typing narrows it, and Enter searches the orders instead.
- 05
Choose the values
The new "Payment status is" chip opens its checklist. Ticking Paid filters the table straight away.
Closed lists are faster to tick than to type. Is / Is not flips the condition without rebuilding the chip.
- 06
Paid and unfulfilled
The chip reads "Payment status is Paid"; Clear all, Reset view and Save view appear next to Sort.
The toolbar now describes the slice in words, and every part of it can be removed or saved.
- 07
Sort, group and columns
Sort by Total, Highest first: the biggest paid orders move to the top while the panel stays open.
Sorting is part of the slice: merchants ship the most valuable or the oldest orders first. The column list keeps the table narrow.
- 08
Grouped by batch
Unbatched paid orders first with "Batch unfulfilled orders", then each batch under its own heading, all sorted by total.
Grouping turns the slice into work: orders already batched are out of the way, the rest can be batched in one click.
Built with shadcn/ui and Radix UI
- Button
- Dropdown Menu
- Popover
- Input
- Checkbox
- Switch
- Field
- Label
- Table
- Sonner
This is an original rebuild of the flow's structure, with its own brand, copy and artwork. Shopify is a trademark of its owner; this page is not affiliated with or endorsed by Shopify.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-shopify-filtering-and-sorting-orders. The shadcn CLI copies the flow into components/flows/shopify-filtering-and-sorting-orders/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-shopify-filtering-and-sorting-orders) and React Aria (@shadcnpro/aria/flow-shopify-filtering-and-sorting-orders) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of Shopify's filtering & sorting flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. Shopify is a trademark of its owner, and this page is not affiliated with or endorsed by Shopify.
Yes, the flow is a pattern, not a fixed template. A step you add should follow the same rules as the others, listed under Step anatomy in the flow spec, so it reads as part of the same flow.
Use the prompt in the Installation section. The agent installs the flow, then reads the flow spec at https://pro.shadcn.co/flows/shopify-filtering-and-sorting-orders.md, which describes the layout, the rules every step follows, each step's fields and actions, and how to adapt the flow. That way it builds a version with your brand and your steps instead of a one-to-one copy.
The orders live in a local array and the view, search, filters, sort, grouping and column toggles all really run against it. There is no backend: "now" is fixed so dates always read the same, Save view only shows a toast, and "Batch unfulfilled orders" assigns batch numbers in memory. In a real app, send the view, query, filters and sort to your orders endpoint, keep them in the URL and persist saved views per user.
Button, Dropdown Menu, Popover, Input, Checkbox, Switch, Field, Label, Table and Sonner, in their Radix UI versions. Everything else is plain markup with Tailwind CSS.
Yes. The flow only uses semantic tokens such as bg-background, bg-card and text-muted-foreground, so it picks up your colours, radius and fonts and switches with dark mode. Use the theme menu above the preview to see it in the Pro themes.
Yes. Below the medium breakpoint the sketched sidebar is hidden and the sketched numbers strip shows fewer cells, the table scrolls sideways inside its card, the toolbar wraps onto two lines and the Sort button shows only its icon. Popovers keep their widths (240–288px), which fit a phone screen.