Replies: 5 comments
-
I'm adding two really interesting related URLs:
Using
gives me
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much @frosencrantz |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
@frosencrantz @saulpw I have added it as "recipe", to my VisiData guide in Italian https://ondata.github.io/guidaVisiData/ricette/#applicare-il-natural-sorting-ai-contenuti-di-una-cella Thank you again |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions