Reads and sorts the first NMax characters in an input file. Does not ouput the original position in the file. Does not match the required output spec.