You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my table, each row is a company and each column is a property of the companies. A property can be numerical or text. A user may not have access to certain companies (rows), if that the case all properties of those companies will be "Premium".
When I try to sort a certain column (by clicking the header), the sorted results for numerical columns are totally incorrect. For text column, "Premium" are treated like a normal text.
My question is: Is there a custom sort in react-table that will put a certain value ("Premium" in this case) at the end of the search result, regardless whether it is a ascending or descending sort and it can work for both numerical and text column? Thanks a lot
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In my table, each row is a company and each column is a property of the companies. A property can be numerical or text. A user may not have access to certain companies (rows), if that the case all properties of those companies will be "Premium".
When I try to sort a certain column (by clicking the header), the sorted results for numerical columns are totally incorrect. For text column, "Premium" are treated like a normal text.
My question is: Is there a custom sort in react-table that will put a certain value ("Premium" in this case) at the end of the search result, regardless whether it is a ascending or descending sort and it can work for both numerical and text column? Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions