documents | Document List Set of documents that are to be sorted. |
sortCriteria | Document List Criteria based on which the documents in the documents parameter are to be sorted. Valid values for sortCriteria parameters are: ![]() ![]() ![]() ![]() Note: If key is not found in all the input documents, the sorted list of documents appears at the end or start of the list based on the order specified. If the order is ascending, then all the documents that do not match the sort criteria appears at the top of the list, followed by the sorted list. If the order is descending, the sorted list will appear at the top, followed by the documents that do not match the sort criteria. |
documents | Document List The documents sorted based on the sort criteria specified in the sortCriteria parameter. |
key | order | compareStringsAs | pattern |
Name | ascending | string | |
Age | descending | numeric | |
Birthdate | ascending | datetime | yyyy-MM-dd |