Skip to content

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

Open

Description

@nextofsearch

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?

Activity

  1. bebraw commented on Apr 7, 2017

    @bebraw
    Member

    Hi,

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

  2. nextofsearch commented on Apr 8, 2017

    @nextofsearch
    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.

  3. bebraw commented on Apr 9, 2017

    @bebraw
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions