Skip to main content

@wildix/wim-knowledge-base-client > ListDocumentsInput > sort

ListDocumentsInput.sort property

Sort order of the results. If there is a '-' prefix, the results will be sorted in descending order. Otherwise, the results will be sorted in ascending order. Example: '-createdAt' will sort the results by createdAt in descending order. 'createdAt' will sort the results by createdAt in ascending order.

Signature:

sort?: string | undefined;