Reorganize nodes and datums