wadetb / Sublime-Text-Advanced-CSV

Efficiently format, edit, arrange, and evaluate cells in CSV files
169 stars 14 forks source link

Sort breaks when repeating it several times #33

Closed jheeffer closed 7 years ago

jheeffer commented 7 years ago

Hi!

I use Sublime Text 2.0.2 on Windows 10. I just installed Text-Advanced-CSV, great tool, no bullshit csv editing!

However I had this file open:

https://raw.githubusercontent.com/open-numbers/ddf--gapminder--systema_globalis/ed96f42cde3ad59a7a99eed97ae898c34f240ab2/ddf--entities--geo--country.csv

I was playing around a bit and wanted to sort it. My sort turned out in a random order instead of sorted.

I tested a bit and:

image

wadetb commented 7 years ago

Thanks for the report! I was able to reproduce unexpected sorting behavior with the file you uploaded.

My theory is that after the sort, the cursor is sometimes moved to another column, and so the subsequent sort is based upon different data.

When testing, I find that the random sorting behavior does not occur if I click the mouse on the first column after each sort command. Is this the case for you as well?

wadetb commented 7 years ago

Fixed in latest release.