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

Support for sorting by column #33

Open
stackenblochen opened this issue Sep 20, 2019 · 2 comments
Open

Support for sorting by column #33

stackenblochen opened this issue Sep 20, 2019 · 2 comments

Comments

@stackenblochen
Copy link

Hi, is it planned to support sorting by column with this component?

@mlrv
Copy link
Owner

mlrv commented Sep 21, 2019

Hi @stackenblochen, I'm not entirely about this tbh. A tree has some sort of natural hierarchy / order already, as an example, how should we sort a tree like this?

+----------+-------+
|          | Value |
+----------+-------+
| A        |    10 |
| - A1     |    50 |
| - B1     |    30 |
| - C1     |    20 |
| B        |    40 |
| C        |    50 |
|  - C1    |   100 |
|   - C2   |    45 |
|   - C3   |    55 |
+----------+-------+

@stackenblochen
Copy link
Author

Thanks for your message. The tree can be ordered by alphabet (first column in your example) or by any other column (value in your example). The tree structure should be kept when sorting by another column, though.

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