When you shake a mixture you create some gaps between the nuts. Because of gravity, small nuts will fall into the gaps between the other nuts, which are too small to be filled by larger nuts. But these will rise only when the KE from the shake is greater than the PE needed to scale the diameter of one small nut: extrm{KE} > extrm{PE}