You are seeing what used to be called "percolation" --- stones coming to the surface in plowed fields, shells from WW I in Flanders, big flakes to the top in cereal boxes and crumbs on bottom. Haven't found the right combination of key words to give you any links, sorry. Density, particle size ratios, surface to mass ratios, shapes (affects packing) all contribute to which particle moves what direction in a matrix of some other particles. Mixtures of unlike solid particulates (cake mix, raisin bran, Lucky Charms) have been subjects of intense study regarding particle surface treatments, sizes, shapes, and mixing times necessary to produce a "homogeneous" (on some specified sample size within some larger batch size) mixture that does not separate or unmix.
You can float steel balls on sand, you can sink ping pong balls in dense media (don't ask me for the trick on this one right now), and you can get wildly different density, or sized, particles to refuse to unmix.