Sorting of the items within the initial blocks