#NEWLINE# def __init__( self , iterable = ( ) , key = None ) : #NEWLINE# #INDENT# self . _given_key = key #NEWLINE# key = ( ( lambda x : x ) if ( key is None ) else key ) #NEWLINE# decorated = sorted ( ( ( key ( item ) , item ) for item in iterable ) ) #NEWLINE# self . _keys = [ k for ( k , item ) in decorated ] #NEWLINE# self . _items = [ item for ( k , item ) in decorated ] #NEWLINE# self . _key = key