- moves any nullptr to the end of the list where they can be eliminated in a second step with resize()