Fixing sort on node update.