sorting with blocks commit