let's sort each chunk