On my page, users have the ability to sort items using various filters.
When the filter is set to Newest
, the items are simply listed by name. But when the filter is set to By collection
, the items within a specific collection are displayed under that collection's title.
Therefore, there are two distinct methods of presenting the items. Routing is already being managed by my backend framework.
What steps should I take to achieve this dual-display functionality?