Flight 5.1.2

New useSortOrders hook

The sort component is moved to the repo and can be implemented in a similar way that the filters are. This increases the freedom to style the component however you'd like. The sort logic will be handled by the new useSortOrders hook.

Since the filter and sort now also share component structure, you can easily share the css for these dropdowns. You can find the example implementation in template-trend. The old implementation of sort will be removed in flight 6.0.

Copyright © Norce 2023. All right reserved.