sort blocks to make reproducable