sorted the file