Page 1 of 1

SOLVED? Numeric Sort

Posted: 18 Feb 2025 15:44
by crtrubshaw
Hi Rickard.

How is the sort numeric algorithm supposed to work, does it only look at numbers, what about other data, simply ignored or subject to some other processing? Maybe I don't understand but it seems to be doing weird stuff.

Just try running numeric sort (asc/desc) on this small sample below and check the results.

c08
a03
b05
c02
a02

Also, I have separate shortcuts assigned to SortLinesNumericand SortLinesNumericDesc, but if I hit the same shortcut twice, it looks like it reverses it (or something) - is this by design? The regular SortLines shortcuts do not do this.

Thanks for reading.

Re: Numeric Sort

Posted: 05 Mar 2025 14:02
by Rickard Johansson
It's an really old feature used when natural sorting wasn't used in Windows (before Windows XP).

Use the normal sort function instead. Also, it doesn't work properly if letters are found before the numbers.

Re: SOLVED? Numeric Sort

Posted: 05 Mar 2025 15:40
by crtrubshaw
I have been using the regular sort, works fine.

Cheers.