add sort each block