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])
def sorted_bits ( self ) -> List [ Tuple [ str , int ] ] : return sorted ( self . bit . items ( ) , key = lambda x : x [ 1 ] )
Return list of bit items sorted by position.