}
MultiValueMode sortMode = context.reverseFlag ? MultiValueMode.MAX : MultiValueMode.MIN;
SearchContext searchContext = context.context.searchContext();
FieldMapper fieldMapper = context.context.searchContext().smartNameFieldMapper(columnIdent.fqn());
SortOrder sortOrder = new SortOrder(context.reverseFlag, context.nullFirst);
IndexFieldData.XFieldComparatorSource fieldComparatorSource =
searchContext.fieldData().getForField(fieldMapper).comparatorSource(sortOrder.missing(), sortMode);
return new SortField(