=Everything_IsFastSort=
The '''Everything_IsFastSort''' function checks if the specified file information is indexed and has fast sort enabled.

==Syntax==
<pre>
BOOL Everything_IsFastSort(DWORD sortType);
</pre>

==Parameters==
<dl>
;''sortType''
Can be one of the following:
{|
! Code
! Value
! Description
|-
| EVERYTHING_IPC_SORT_NAME_ASCENDING
| 1
| Name ascending
|-
| EVERYTHING_IPC_SORT_NAME_DESCENDING 
| 2
| Name descending
|-
| EVERYTHING_IPC_SORT_PATH_ASCENDING 
| 3
| Path ascending
|-
| EVERYTHING_IPC_SORT_PATH_DESCENDING 
| 4
| Path descending
|-
| EVERYTHING_IPC_SORT_SIZE_ASCENDING 
| 5
| Size ascending
|-
| EVERYTHING_IPC_SORT_SIZE_DESCENDING 
| 6
| Size descending
|-
| EVERYTHING_IPC_SORT_EXTENSION_ASCENDING 
| 7
| Extension ascending
|-
| EVERYTHING_IPC_SORT_EXTENSION_DESCENDING 
| 8
| Extension descending
|-
| EVERYTHING_IPC_SORT_TYPE_NAME_ASCENDING 
| 9
| Type name ascending
|-
| EVERYTHING_IPC_SORT_TYPE_NAME_DESCENDING 
| 10
| Type name descending
|-
| EVERYTHING_IPC_SORT_DATE_CREATED_ASCENDING 
| 11
| Date created ascending
|-
| EVERYTHING_IPC_SORT_DATE_CREATED_DESCENDING 
| 12
| Date created descending
|-
| EVERYTHING_IPC_SORT_DATE_MODIFIED_ASCENDING 
| 13
| Date modified ascending
|-
| EVERYTHING_IPC_SORT_DATE_MODIFIED_DESCENDING 
| 14
| Date modified descending
|-
| EVERYTHING_IPC_SORT_ATTRIBUTES_ASCENDING 
| 15
| Attributes ascending
|-
| EVERYTHING_IPC_SORT_ATTRIBUTES_DESCENDING 
| 16
| Attributes descending
|-
| EVERYTHING_IPC_SORT_FILE_LIST_FILENAME_ASCENDING 
| 17
| File list filename ascending
|-
| EVERYTHING_IPC_SORT_FILE_LIST_FILENAME_DESCENDING 
| 18
| File list filename descending
|-
| EVERYTHING_IPC_SORT_RUN_COUNT_ASCENDING 
| 19
| Run count ascending
|-
| EVERYTHING_IPC_SORT_RUN_COUNT_DESCENDING 
| 20
| Run count descending
|-
| EVERYTHING_IPC_SORT_DATE_RECENTLY_CHANGED_ASCENDING
| 21
| Recently changed ascending
|-
| EVERYTHING_IPC_SORT_DATE_RECENTLY_CHANGED_DESCENDING
| 22
| Recently changed descending
|-
| EVERYTHING_IPC_SORT_DATE_ACCESSED_ASCENDING
| 23
| Date accessed ascending
|-
| EVERYTHING_IPC_SORT_DATE_ACCESSED_DESCENDING
| 24
| Date accessed descending
|-
| EVERYTHING_IPC_SORT_DATE_RUN_ASCENDING
| 25
| Date run ascending
|-
| EVERYTHING_IPC_SORT_DATE_RUN_DESCENDING
| 26
| Date run descending
|}
</dl>

==Return Value==
The function returns non-zero if the specified information is indexed and has fast sort enabled.
The function returns 0 if the specified information does not have fast sort enabled or if an error occurred. To get extended error information, call [[support/everything/SDK/Everything_GetLastError|Everything_GetLastError]].

{|
! Error code
! Meaning
|-
| EVERYTHING_OK
| The specified information does not have fast sort enabled.
|-
| EVERYTHING_ERROR_IPC
| Please make sure the Everything search client is running in the background.
|}

==Remarks==
The following sort types are always fast sort types:
{|
! Code
! Value
! Description
|-
| EVERYTHING_IPC_SORT_NAME_ASCENDING
| 1
| Name ascending
|-
| EVERYTHING_IPC_SORT_NAME_DESCENDING 
| 2
| Name descending
|-
| EVERYTHING_IPC_SORT_RUN_COUNT_ASCENDING 
| 19
| Run count ascending
|-
| EVERYTHING_IPC_SORT_RUN_COUNT_DESCENDING 
| 20
| Run count descending
|-
| EVERYTHING_IPC_SORT_DATE_RECENTLY_CHANGED_ASCENDING
| 21
| Recently changed ascending
|-
| EVERYTHING_IPC_SORT_DATE_RECENTLY_CHANGED_DESCENDING
| 22
| Recently changed descending
|-
| EVERYTHING_IPC_SORT_DATE_RUN_ASCENDING
| 25
| Date run ascending
|-
| EVERYTHING_IPC_SORT_DATE_RUN_DESCENDING
| 26
| Date run descending
|}
		
==Example==
<pre>
BOOL isFastSizeSort;

// Check if sorting by size descending will be instant.
isFastSizeSort = Everything_IsFastSort(EVERYTHING_IPC_SORT_SIZE_DESCENDING);
</pre>

==Function Information==
Requires Everything 1.4.1 or later.

==See Also==
<ul>
*[[support/everything/SDK/Everything_IsFileInfoIndexed|Everything_IsFileInfoIndexed]]
*[[support/everything/indexes/#size_dates_and_attributes_indexing|Enable or disable file information indexing]]
*[[support/everything/indexes/#fast_sorting|Enable or disable fast sorting]]
</ul>
