P28 - sorting a list of lists according to length of sublists.
l sorted by the length of the lists
lsortFreq - Generic function to sort a list of lists according to the frequency of the size of sublists.
list of lists to be sorted
l sorted by the frequency of the length of the lists
The type A must be sortable