nodes: 0, module; 1, function_definition; 2, function_name:get_item_children; 3, parameters; 4, block; 5, identifier:item; 6, expression_statement; 7, expression_statement; 8, for_statement; 9, return_statement; 10, comment:"""Return a sorted list of all the children items of 'item'."""; 11, assignment; 12, identifier:child; 13, subscript; 14, block; 15, call; 16, identifier:children; 17, list_comprehension; 18, identifier:children; 19, slice; 20, expression_statement; 21, if_statement; 22, identifier:sorted; 23, argument_list; 24, call; 25, for_in_clause; 26, assignment; 27, comparison_operator:others is not None; 28, block; 29, identifier:children; 30, keyword_argument; 31, attribute; 32, argument_list; 33, identifier:index; 34, call; 35, identifier:others; 36, call; 37, identifier:others; 38, None; 39, expression_statement; 40, identifier:key; 41, lambda; 42, identifier:item; 43, identifier:child; 44, identifier:index; 45, identifier:range; 46, argument_list; 47, identifier:get_item_children; 48, argument_list; 49, augmented_assignment; 50, lambda_parameters; 51, attribute; 52, call; 53, identifier:child; 54, identifier:children; 55, identifier:others; 56, identifier:child; 57, identifier:child; 58, identifier:line; 59, attribute; 60, argument_list; 61, identifier:item; 62, identifier:childCount
code: def get_item_children(item):
      """Return a sorted list of all the children items of 'item'."""
      children = [item.child(index) for index in range(item.childCount())]
      for child in children[:]:
          others = get_item_children(child)
          if others is not None:
              children += others
      return sorted(children, key=lambda child: child.line)