nodes: 0, module; 1, function_definition; 2, function_name:sorted_bits; 3, parameters; 4, type; 5, block; 6, identifier:self; 7, generic_type; 8, expression_statement; 9, return_statement; 10, identifier:List; 11, type_parameter; 12, comment:"""Return list of bit items sorted by position."""; 13, call; 14, type; 15, identifier:sorted; 16, argument_list; 17, generic_type; 18, call; 19, keyword_argument; 20, identifier:Tuple; 21, type_parameter; 22, attribute; 23, argument_list; 24, identifier:key; 25, lambda; 26, type; 27, type; 28, attribute; 29, identifier:items; 30, lambda_parameters; 31, subscript; 32, identifier:str; 33, identifier:int; 34, identifier:self; 35, identifier:bit; 36, identifier:x; 37, identifier:x; 38, integer:1
code: def sorted_bits(self) -> List[Tuple[str, int]]:
          """Return list of bit items sorted by position."""
          return sorted(self.bit.items(), key=lambda x: x[1])