When terms don't have weight - don't need to sort them. Display the tree as is.
Merge pull request #3648 from openscholar/3623

When terms don't have weight - don't need to sort them. Display the tree as is.