I have several data files where the first 8 characters on each line is the date in YYYYMMDD format.
Immediately following the date is a one-letter code.
For example:
20100531P Some data
20100531n Some more data
When I add these two lines to the listbox, I want them in the sequence shown in the example.
The 'n' was deliberately chosen so that 2 entries with the same date would be in that sequence.
(The Sort property is set to True.)
But the entries show up in this order:
20100531n Some more data
20100531P Some data
Since the ascii value for n is hex 6E
and the ascii value for P is hex 50,
why are the entries ending up with the n before the P?
Immediately following the date is a one-letter code.
For example:
20100531P Some data
20100531n Some more data
When I add these two lines to the listbox, I want them in the sequence shown in the example.
The 'n' was deliberately chosen so that 2 entries with the same date would be in that sequence.
(The Sort property is set to True.)
But the entries show up in this order:
20100531n Some more data
20100531P Some data
Since the ascii value for n is hex 6E
and the ascii value for P is hex 50,
why are the entries ending up with the n before the P?