'Return True if self is less than other when the partition
is listed from smallest to biggest.
Examples
>>> from sympy.combinatorics.partitions import IntegerPartition
>>> a = IntegerPartition([3, 1])
>>> a < a
False
>>> b = a.next_lex()
>>> a < b
True
>>> a == b
False'

def __lt__(self, other):

    return (list(reversed(self.partition)) < list(reversed(other.partition)))
