look at /etc/profile where I had to set LC_COLLATE = C and export it so that sorting worked right thanks jason