def __lt__(self, other):
        """
        Checks if a partition is less than the other.

        Examples
        ========

        >>> from sympy.combinatorics.partitions import Partition
        >>> a = Partition([1, 2], [3, 4, 5])
        >>> b = Partition([1], [2, 3], [4], [5])
        >>> a.rank, b.rank
        (9, 34)
        >>> a < b
        True
        """
        return sympify(other).sort_key() < self.sort_key()
dataset/ETHPy150Open sympy/sympy/sympy/combinatorics/partitions.py/Partition.__lt__/swapped operands of `<`