nodes: 0, module; 1, function_definition; 2, function_name:sorted_names; 3, parameters; 4, block; 5, identifier:names; 6, expression_statement; 7, expression_statement; 8, expression_statement; 9, if_statement; 10, expression_statement; 11, if_statement; 12, return_statement; 13, comment:"""
      Sort a list of names but keep the word 'default' first if it's there.
      """; 14, assignment; 15, assignment; 16, comparison_operator:'default' in names; 17, block; 18, assignment; 19, identifier:have_default; 20, block; 21, identifier:sorted_names; 22, identifier:names; 23, call; 24, identifier:have_default; 25, False; 26, string; 27, identifier:names; 28, expression_statement; 29, expression_statement; 30, identifier:sorted_names; 31, call; 32, expression_statement; 33, identifier:list; 34, argument_list; 35, string_content:default; 36, call; 37, assignment; 38, identifier:sorted; 39, argument_list; 40, assignment; 41, identifier:names; 42, attribute; 43, argument_list; 44, identifier:have_default; 45, True; 46, identifier:names; 47, identifier:sorted_names; 48, binary_operator:['default'] + sorted_names; 49, identifier:names; 50, identifier:remove; 51, string; 52, list; 53, identifier:sorted_names; 54, string_content:default; 55, string; 56, string_content:default
code: def sorted_names(names):
      """
      Sort a list of names but keep the word 'default' first if it's there.
      """
      names = list(names)
  
      have_default = False
      if 'default' in names:
          names.remove('default')
          have_default = True
  
      sorted_names = sorted(names)
  
      if have_default:
          sorted_names = ['default'] + sorted_names
  
      return sorted_names