You are here: Symbol Reference > dtSearch.Engine Namespace > SearchResults Class > SearchResults Methods > SetSortKey Method
Close
dtSearch .NET Standard API 2022.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.

Copyright (c) 1998-2022 dtSearch Corp. All rights reserved.