fixed sorting bug in unix file format
dos format