I would like to use the following criteria to display a list of products:
I want to display them in order of sales by category and time period.
I would like to use a dropdown menu to allow selection of the time period, including options for 24 hours, previous day, previous week, and previous month.
Could you please guide me on how to achieve this?