nodes: 0, module; 1, function_definition; 2, function_name:sort; 3, parameters; 4, block; 5, identifier:in_file; 6, identifier:out_file; 7, expression_statement; 8, expression_statement; 9, expression_statement; 10, expression_statement; 11, expression_statement; 12, expression_statement; 13, for_statement; 14, expression_statement; 15, comment:"""Sorts the given file.
      """; 16, assignment; 17, assignment; 18, call; 19, call; 20, assignment; 21, identifier:line; 22, identifier:lines; 23, block; 24, call; 25, identifier:filehandle; 26, call; 27, identifier:lines; 28, call; 29, attribute; 30, argument_list; 31, attribute; 32, argument_list; 33, identifier:filehandle; 34, call; 35, expression_statement; 36, attribute; 37, argument_list; 38, identifier:open; 39, argument_list; 40, attribute; 41, argument_list; 42, identifier:filehandle; 43, identifier:close; 44, identifier:lines; 45, identifier:sort; 46, identifier:open; 47, argument_list; 48, call; 49, identifier:filehandle; 50, identifier:close; 51, identifier:in_file; 52, string; 53, identifier:filehandle; 54, identifier:readlines; 55, identifier:out_file; 56, string; 57, attribute; 58, argument_list; 59, string_content:r; 60, string_content:w; 61, identifier:filehandle; 62, identifier:write; 63, identifier:line
code: def sort(in_file, out_file):
      """Sorts the given 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()