A block-sorting compression tool