Make sure sortnode values are released after sort