def __lt__(self, other):
        return self.refractive_index < other.refractive_index
Compares based on refractive index of the medium.
dataset/ETHPy150Open sympy/sympy/sympy/physics/optics/medium.py/Medium.__lt__