ContentGetDefaultSortOrder

From TotalcmdWiki
Jump to navigation Jump to search

ContentGetDefaultSortOrder is called when the user clicks on the sorting header above the columns.

Declaration:

int __stdcall ContentGetDefaultSortOrder(int FieldIndex);

Description of parameters:

FieldIndex The index of the field for which the sort order should be returned.

Return value:

Return 1 for ascending (a..z, 1..9), or -1 for descending (z..a, 9..0).

Note:

You may implement this function if there are fields which are usually sorted in descending order, like the size field (largest file first) or the date/time fields (newest first). If the function isn't implemented, ascending will be the default.


Back to Content plugins developer guide