-
-
Notifications
You must be signed in to change notification settings - Fork 287
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Add natural sorting function to cell content #1271
Comments
I'm adding two really interesting related URLs:
Using
gives me
|
I had wanted to respond to this for some time. It is pretty easy to add your function into your .visidatarc and then use
I've wanted to do something similar with a column of values. It looks like it is possible to create a custom column type, and then use https://github.com/SethMMorton/natsort/ to sort the values. If the values were wrapped in a class, it looks like it would be possible to do something like this for adding natural sort order: SethMMorton/natsort#60 (comment) Also, this seems like more a request for a new plugin from the community than from Saul or Anja directly. I am wondering if we could add another issue tag for plugin requests or community volunteers. |
Thank you very much @frosencrantz |
Yeah, I agree with @frosencrantz, for the time being I think this should be more of a plugin, and we can see how it evolves. Converting to a discussion, feel free to continue to toss around ideas. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hi,
today I needed to sort (natural sorting) this list of values
15,1,2/AX,22,1/C,1/2,1/1,1/A,1/BA,2,3
, to obtain1,1/1,1/2,1/A,1/BA,1/C,2,2/AX,3,15,22
.I did this using the shell
I'm not able to build a plugin, but I have build a Python hello world example, and some of the skilled users, could turn it into a plugin or a VisiData function:
The result is
1,1/1,1/2,1/A,1/BA,1/C,2,2/AX,3,15,22
.The list separator should become an option.
The text was updated successfully, but these errors were encountered: