#NEWLINE# def __lt__( self , other ) : #NEWLINE# #INDENT# '\n        Compares based on refractive index of the medium.\n        ' #NEWLINE# return ( self . refractive_index < other . refractive_index )