/// OpenSearch supports sorting by array or multi-valued fields. The `mode`
/// option controls what array value is picked for sorting the document it
/// belongs to.
///
/// The default sort mode in the ascending sort order is `min` — the lowest
/// value is picked. The default sort mode in the descending order is `max` —
/// the highest value is picked.
///
/// <https://www.elastic.co/guide/en/opensearch/reference/current/sort-search-results.html#_sort_mode_option>