LengthLexicographic(mu, nu)
LengthLexicographic
returns true
if the length of mu is less
than the length of nu or if the length of mu equals the
length of nu and Lexicographic(mu, nu)
.
gap> p:=Partitions(6);;Sort(p,LengthLexicographic); p; [ [ 6 ],[ 5, 1 ],[ 4, 2 ],[ 3, 3 ],[ 4, 1, 1 ],[ 3, 2, 1 ],[ 2, 2, 2 ], [ 3, 1, 1, 1 ],[ 2, 2, 1, 1 ],[ 2, 1, 1, 1, 1 ],[ 1, 1, 1, 1, 1, 1 ] ]
This function requires the package ``specht'' (see RequirePackage).
GAP 3.4.4