Sorting values in documentList in "alphabetical" order

I want to sort the values on bases of alphabetical order.

I have used pub.document:sortDocuments but no luck, if anybody have any idea please guide.

Hi Ahamed,

can you provide some more details please?
Esp. the inputs for pub.document:sortDocuments as well as a sample document list.

Regards,
Holger

The value you’re mapping for “key” is incorrect - you are mapping the actual data, while it is supposed to be the path to the field or the field itself.

In your case, it will be “name”.

KM

3 Likes

Don’t map ‘name’ to ‘key’ instead set ‘key’ to the string name.

Percio

2 Likes

Looks like @Venkata_Kasi_Viswanath_Mugada1 beat me to the punch :slight_smile:

2 Likes

Additional Info:

as sortCriteria is a doc-list input you will have to create a document instance sortCriteria under the list and then map the values as already described above.
By doing so there can be multiple sort criterias which will be applied in the order given in the list.
See example in the IS Built-In-Services Reference, which Kasi has already referred to with his screenshot.

Regards,
Holger

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.