Windows uses lexicographical sorting - 1,2,3,4 etc are treated as alphabet characters, not numerical, so it sorts on 1st "letter", then second "letter" etc. This is historical due to "Hollerith" characters right basck in dawn of digital computing.
So to sort, you have to (for numbers up to 999), use leading digits of 00, for single digit, and 0 for double digit
so if you had 1, 2, 4, 26, 27, 31, 46, 106, 156, 999 you use 001, 002, 004, 026, 027, 031, 046, 106, 156, 999
This would nest sort by 1st char, and then by 2nd, then by third
1st 2nd 3rd
0 0 1
0 0 2
0 0 3 ---> as 1st 2 digits same, it sorts on 3rd digit
0 2 6 ----> now sorting on 2nd row, then 3rd row
0 2 7
0 3 1 - back to sorting on second row
0 4 7
1 0 6 - now back to sorting on 1st row
1 5 6 - now moving to second row.
9 9 9 - back to 1st row
Note sorting on date - Backward European YYMMDD always sorts in order. Forward European DDMMYY does not!
Forward EU 12th June 21, 11th July 21, 13th July 22,14th June 22 will get incorrectly sorted as
110721
120621
130722
140622
Backward EU will get correctly sorted as
210612
210711
220614
220713
i.e in correct order.
Of course, the illogical US MMDDYY format will sort wrong whether forwards or backwards for these selected numbers
US forward
061221
061422
071121
071322
US Backward
211107
211206
220713
221406
Only EU backwards will sort correctly for all dates.