Almost finish std-sort