Help > Web Development > Object Reference > Object Reference > ISYSResultList > Sort Method
<a name="kanchor523"></a>ISYSResultList:Sort Method
Sort the result list by the specified criterion.

Syntax
[VBScript]
sub ISYSResultList.Sort(_
  variant Mode_ 
)
[C#]
void IISYSResultList.Sort(
  System.Object Mode
);
[ColdFusion/Java]
void IISYSResultList.Sort(
  System.Object Mode
) throws ComException;
Parameters
ModeSpecify one or more of the following options (use array to specify multiple).
isysSortDefault1
isysSortNumHits2
isysSortDocSize3
isysSortFilePath4
isysSortFileType5
isysSortFileName6
isysSortDateTime7
isysSortRelevance8
isysSortDocDate9
isysSortBytes10
isysSortIndexed11
isysSortTitle12
isysSortUnphrasedHits13
isysSortFormat14
isysSortCategory64

Examples
[VBScript]
<% ' Execute a pre-configured search set Results = ISYSSearch.Execute ' Resort the result list Results.Sort isysSortRelevance ' Alternatively, sort by relevance then date Results.Sort Array(isysSortRelevance, isysSortDateTime) %>
Remarks
Note: It is more efficient to specify the Sort order using the ISYSSearch.Sort then using this Sort method.

You can change the direction of the sorting passing in a negative value, for example, to sort by smallest file first, pass in -SortBytes.

See Also