Use ordinals for comparison in GlobalOrdinalsStringTermsAggregator.buildAggregation. Closes #6518