Adjust height of nodes depending on the size of the sort