Letting customers order by date and time

Question:
Letting customers order by date and time

You can use: CMS (Formerly Content Manager): Adding Filters and Sorts to Datasets to Control Live Site Content | Help Center | Wix.com

Or for Velo you can query with wix-data, and provide a sort direction (ascending or descending), and have all that run when a user clicks a button with onClick or selects an option using the event handler for when that options’ value changes. Depending on your design those events can be found here: Wix Editor Elements ($w) - Velo API Reference - Wix.com

That only works to sort the dataset before it loads the page.
Not for sorting the products/content on the website as the customer wants.