Sorting and Merge Nodes