pixel sorting complete