PETZOLD BOOK BLOG

Charles Petzold on writing books, reading books, and exercising the internal UTM


Recent Entries
< PreviousBrowse the ArchivesNext >
Subscribe to the RSS Feed

Sorting Without Spaces

December 13, 2007
Roscoe, N.Y.

Jeff Atwood's blog about sorting now has a response from Ian Griffiths.

Both of them ignore one of my pet peeves. For centuries, people alphabetized words and phrases by ignoring spaces and punctuation. For example, "Newark" would come before "New York." Computers changed all that, and I think for the worse. The problem is that the ASCII space code x20 comes before every other printable ASCII character, so spaces have a very high sorting priority. You would think that the extensive use of camel-case in the computer industry would have convinced us to go back to the old system of ignoring spaces (and other punctuation) while alphabetizing, but that's not so. Windows Explorer sorts in this order:

Now doesn't that just seem plain wrong?

At any rate, we should all be happy we're not still dealing with EBCDIC.


Comments:

ASCII is not the reason for Windows Explorer's sorting. ASCII yields this order:

New York

NewYork

Newark

— In case of assortment break fast, Mon, 25 Feb 2008 04:29:15 -0500 (EST)


Recent Entries
< PreviousBrowse the ArchivesNext >
Subscribe to the RSS Feed

(c) Copyright Charles Petzold
www.charlespetzold.com