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: key. Name of the element in documentList whose value provides the value based on which the documents are to be sorted. The value for key can be a path expression. For example, "Family/Chidren[0]/BirthDate" retrieves the birthday of the first child from the input Family document list. order. Optional. Allowed values are ascending and descending. The default value is ascending. compareStringsAs. Optional. Allowed values are string, numeric, and datetime. Default value is string. pattern. Optional. The value for pattern will be considered only if the compareStringsAs value is of type datetime. For information about using patterns, see Time Zones.
|
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 |