Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple values in a cell and specify which value to use for sorting #5

Open
nextofsearch opened this issue Apr 7, 2017 · 3 comments

Comments

@nextofsearch
Copy link

Hi,

If I have a table with multiple values in a cell can I specify which value (i.e. hidden input) to use for sorting?

@bebraw
Copy link
Member

bebraw commented Apr 7, 2017

Hi,

Sorting is per column. What kind of sort are you looking for exactly? Can you give an example?

@nextofsearch
Copy link
Author

@bebraw Thanks for responding.

Please check out this image. The cell has 2 values: one is an original value and the other is a variation compared to control group. The current implementation is done using jQuery dataTable and I am searching for an alternative since it is not compatible with React. The way I did with dataTables is adding a number using input tag as hidden and set sorting to be done with the input tag in the cell, not just any number.

@bebraw
Copy link
Member

bebraw commented Apr 9, 2017

Check sortabular carefully. Maybe one of those would work. Especially multi-column sort was designed for more complex cases.

I'm not sure if I got the variation idea right but it should be possible to tweak the behavior to match your requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants