Make sort orders affect other get_terms calls Closes #3439.