You are here: Symbol Reference
> dtSearch.Engine Namespace
> SearchResults Class
> SearchResults Methods
> SetSortKey Method
dtSearch .NET Standard API 2021.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-2021 dtSearch Corp. All rights reserved.