General discussion

Locked

File naming

By fredericlegrand ·
I have a question concerning file naming in Windows, I have 100 documents named "1 toto", "2 test" .... "10 alpha" , I want to diplay them in Windows explorer in a numeric order but windows keeps ordering them "1 toto", "10 alpha" "2 test" as 10 is understood as 1.0 and not number 10.
Would you have an idea to have a proper numeric display?
Thanks

This conversation is currently closed to new comments.

10 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

File naming

by DKlippert In reply to File naming

You have to add as many digits as the largest number.
0001, 0010, 0100, 1000

Collapse -

File naming

by fredericlegrand In reply to File naming

The question was auto-closed by TechRepublic

Collapse -

File naming

by Ann777 In reply to File naming

You have to put zeros in front of the number...
001, 099, 100, etc.... to get the file names in numerical order.

Collapse -

File naming

by fredericlegrand In reply to File naming

The question was auto-closed by TechRepublic

Collapse -

File naming

by TheChas In reply to File naming

DKlippert is correct as to what you have to do to get the files to sort the way you want.
This is "standard" practice for databases.

As to why this is:
Windows, (and most other programs) does a simple alpha-numeric sort using the ASCII character set.
You need to look at the ASCII value of each character to understand the sort order.
The lower the character number, the closer to the top of a sort it appears.
10 has lower ASCII numbers than 1 with a space afterwords.

Chas

Collapse -

File naming

by fredericlegrand In reply to File naming

The question was auto-closed by TechRepublic

Collapse -

File naming

by patty In reply to File naming

Try putting an exclaimation point (!) in front of the file name. Only problem is, you'll have to do that to each file. I found that that worked for me.

Collapse -

File naming

by patty In reply to File naming

Not sure how that would work with numbers though.

Collapse -

File naming

by fredericlegrand In reply to File naming

The question was auto-closed by TechRepublic

Collapse -

File naming

by fredericlegrand In reply to File naming

This question was auto closed due to inactivity

Back to Windows Forum
10 total posts (Page 1 of 1)  

Related Discussions

Related Forums