Revert previous fix for sort which is wrong
Sort the (newly inserted) nodes