andmarti1424 / sc-im

sc-im - Spreadsheet Calculator Improvised -- An ncurses spreadsheet program for terminal
Other
4.77k stars 201 forks source link

Sorting by string columns is not working as expected #867

Closed eurochriskelly closed 6 months ago

eurochriskelly commented 6 months ago

When I try to sort a column with numbers it just works.

When I try to sort a column with strings it reports "Done" but the display does not change.

I've tried both visual selection with :sort "+#D" and specifying the range with :sort A:1:D10 "+#D" but neither works.

eurochriskelly commented 6 months ago

Seems I didn't look closely enough at the documentation. I assumed it would figure out the datatype of the field by itself (but of course it could be mixed). changing "+#D" to "+$D" did the trick.