I have used the "unix" sort for years without trouble, but suddenly something weird is happening. I have a student whose last name is Khan, and a student whose last name is Khanal,. The comma immediately follows the last name. Obviously Khan should be sorted before Khanal, both from the English standpoint and based on the ASCI code for a comma. But it is not. Khanal comes first. Why? (The two files I have attached are the unsorted version (khan.txt) and the one produced by
sort +0.0  -0.14 khan.txt >khan.out

                         Dr. Betty Barr,
                         University of Houston
Barr,Betty
Barak,Obama
Barr,Candy
Khan,Lesl
Khanal,Ad
Khan,Asa
Barak,Obama
Barr,Betty
Barr,Candy
Khanal,Ad
Khan,Asa
Khan,Lesl

Reply via email to