Nozbe / withObservables

HOC (Higher-Order Component) for connecting RxJS Observables to React Components
https://github.com/Nozbe/WatermelonDB
MIT License
66 stars 26 forks source link

Sorting #121

Closed He1nr1chK closed 2 years ago

He1nr1chK commented 2 years ago

Hi @radex, sorry for opening an issue to ask a question but couldn't find any other place to have the discussion. Is there a way to sort the array before it is passed to the HOC? In the documentation it is mentioned that it is better to do the sorting in JS. I tried to insert a sort function that intercepts the data before it is passed to the list to be rendered but to no avail. Any help with this would be greatly appreciated.