sorting a list of lists according to length of sublists (a)