This is just a quick snippet for getting a bunch of random boxes to align to the top left. It works by sorting the boxes in order of height and then tracking the height of the box on the previous row. Click on the Flash to focus it and then press spacebar to re-spawn the boxes. Download source.