code: def sort(in_file, out_file):
      filehandle = open(in_file, 'r')
      lines = filehandle.readlines()
      filehandle.close()
      lines.sort()
      filehandle = open(out_file, 'w')
      for line in lines:
          filehandle.write(line)
      filehandle.close()