pantryslut: (Default)
[personal profile] pantryslut
when alphabetizing email addresses, does . come before or after _ ?

Date: 2004-12-09 11:34 pm (UTC)
kiya: (computers)
From: [personal profile] kiya
You know how I'd decide how to do that one?

I'd send myself two emails, one titled 'test.' and one titled 'test_', then hit 'sort by title' on Eudora and see which one it thinks goes first.

I'm not sure if this is clever or pathetic.

Date: 2004-12-10 12:10 am (UTC)
brooksmoses: (Default)
From: [personal profile] brooksmoses
Heh.

Most computer programs these days "alphabetize" by converting upper-case to lower-case (or possibly vice-versa) and then sorting on ASCII values. "_" is ASCII 95, while "." is ASCII 46. Thus, "_" comes after. (Note that if you do this, you definitely want to convert letters to lower-case; otherwise, the letters will come between those two symbols.) Similarly, in EBCDIC -- which no sane person would use for alphabetizing strings, even if it were still in use, because it puts things like "~" in the middle of the alphabet -- "." has a lexicographic value less than "_".

Alternately, the computer book I have handiest that has such symbols in its index (LaTeX: A Document Preparation System) puts "_" before ".".

In either case, though, they should both come before the letters. And it's nice to do like the book I mentioned, and put a nice little table of symbol-ordering in the margin of your alphabetized list.

Meanwhile, I'm reminded of a conversation I had with [livejournal.com profile] akosut and [livejournal.com profile] ejalbert about the various quirks of Unicode, and the various strangenesses it causes with ordering strings -- on account of the fact that many alphabets don't have a one-to-one mapping between upper- and lower-case, and sometimes what's one letter in one has to be two letters in the other. And then there's the quirks that come from the fact that there's no good solution to the problem of whether you want to have a different code for an "A" in different alphabets that alphabetize differently, and so forth. There's quite a remarkable lot of geekery potential in the matter, really.

Date: 2004-12-10 10:45 am (UTC)
From: [identity profile] pantryslut.livejournal.com
I knew that there was much geek potential in this, for sure.

FWIW, this list is never going to be published, so I can just come up with any arbitrary scheme that pleases me (and don't have to include any helpful notes to anyone except myself). But -- ASCII values, of course!

Date: 2004-12-10 10:42 am (UTC)
From: [identity profile] pantryslut.livejournal.com
are they mutually exclusive ? :)

Profile

pantryslut: (Default)
pantryslut

November 2017

S M T W T F S
   1 234
567891011
12131415161718
19202122232425
2627282930  

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 22nd, 2026 11:50 am
Powered by Dreamwidth Studios