Added: sort values when adding node.