Sort scrambling data

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Sort scrambling data

Post by kengrubb »

I have a plain text data file of just under 100K rows. The data are all 5 to 8 digit numbers.

I sort it using

First Key From: 1
First Key Length: 10
Sort Order: Ascending
Comparison: Case insensitive or Case sensitive

The data becomes garbled.

I know that I should be using Comparison: Numeric, and when I do, all is well.

However, why are Case insensitive or Case sensitive causing the data to become garbled?
[/list]
(2[Bb]|[^2].|.[^Bb])

That is the question.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

case sensitive/insensitive select a sort by character order (respecting or ignoring case).
Then every word starting with an 'a' will be put before any word starting with a 'b', no matter which characters follow.
Similarly, any word starting with a '1' will be put before any word starting with '2'.

So you get something like
0
1
10
100
101
...
109
11
12
...
19
2
20
...
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

I should be clear, the data itself changes.

A sort order looking at the number as characters makes total sense.

But I'm seeing that the data itself changes.
(2[Bb]|[^2].|.[^Bb])

That is the question.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

can you provide a small sample file showing the effect?
Post Reply