chrisbra / csv.vim

A Filetype plugin for csv files
http://www.vim.org/scripts/script.php?script_id=2830
Vim License
1.27k stars 62 forks source link

Sort is not working #192

Closed hsvdg closed 3 years ago

hsvdg commented 3 years ago

Sorting on a collumn does not seem to work. Even when using with the "n" modified, number seem to get sorted by their length first, only then by the numerical value.

chrisbra commented 3 years ago

I cannot reproduce this

hsvdg commented 3 years ago

Here is a small .csv. I sorted it using 2,$ Sort 3

tmp.csv

chrisbra commented 3 years ago

so you want sorting on floats. Should be possible now using :2,$Sort 3f

hsvdg commented 3 years ago

Thank you for the quick response (really quick). I was not aware that sorting on floats was not enabled. I updated the package, but I still get the wrong order on the data I uploaded.

chrisbra commented 3 years ago

It worked for me. Did you use the flag f?

hsvdg commented 3 years ago

Yes, I did use the f flag, as you indicated. -I downloaded the latest version via vundle.

-My version of vim is: NVIM v0.4.3

Thank you for this...

BTW: With or without sorting, this is really great software. I use it all the time!

Dominique

Am Do., 29. Apr. 2021 um 16:03 Uhr schrieb Christian Brabandt < @.***>:

It worked for me. Did you use the flag f?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/chrisbra/csv.vim/issues/192#issuecomment-829313146, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT4LBUCMXRFGUKACDSNCXH3TLFYKPANCNFSM43ZZVHHA .

chrisbra commented 3 years ago

Not sure, but this is what it looks like for me using nvim 0.4.4: image

hsvdg commented 3 years ago

Hi,

thank you again for looking into this. I tried this out with vim (i.e. not nvim) and it worked.

On nvim still no luck (btw, I used the exact same .vimrc for both).

Let me know if you need some more information.

Dominique

On Thu, Apr 29, 2021 at 11:05:39PM -0700, Christian Brabandt wrote:

Not sure, but this is what it looks like for me using nvim 0.4.4: image

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/chrisbra/csv.vim/issues/192#issuecomment-829862339