[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Sort order refinements?



Eric Van Tassel:

The reason that "Liebe#" sorts after "Liebe hat#" is that a space is just
another character, namely ASCII 32. It thus precedes any letter, capital or
lc. A simple way to handle the sorting problem is to insert a character
higher than 122 (z) after the last letter and before your non-alphanumeric
string. I use ASCII 124, the vertical bar (|). If that occurs in your
string, you can choose another one. When you are done sorting, you can just
erase it or replace it with a space.

N. Sivin
History and Sociology of Science
University of Pennsylvania
Philadelphia, PA 19104-3325, U.S.A.
nsivin@xxxxxxxx