SOLVED? Numeric Sort

Report issues, odd behaviors or submit a detailed bug report.
Post Reply
crtrubshaw
Posts: 350
Joined: 06 Jun 2012 11:08

SOLVED? Numeric Sort

Post 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.
User avatar
Rickard Johansson
Site Admin
Posts: 6783
Joined: 19 Jul 2006 14:29

Re: Numeric Sort

Post 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.
crtrubshaw
Posts: 350
Joined: 06 Jun 2012 11:08

Re: SOLVED? Numeric Sort

Post by crtrubshaw »

I have been using the regular sort, works fine.

Cheers.
Post Reply