dtSearch .NET Standard API 2023.02
SearchResults.SetSortKey Method

Set the sort key for the currently-selected document.

public void SetSortKey( int iItem, string newKey );

SetSortKey provides a way to assign a string to each item in search results to use as a sort key. After each item has been assigned a sort key, call Sort(SortFlags.dtsSortBySortKey) to sort SearchResults by the assigned keys.