Problem with Document.sortDocuments

Good day.

Would it be right to suggest that if the document’s field contains whitespaces and/or special characters in its name, the sortDocuments function will not recognise that field as a valid sorting criteria, and won’t even tell you that there’s something wrong with the operation, or there must be some other kind of reason my list is not getting sorted properly?


(the document’s naming comes from a converted flatfile that is being used in several other flowservices, so it won’t be easy to “Just avoid holding naming it in that way”. If there might be other reasons, I’d rather explore them first.)

Nevermind, I got the answer.

… all right, not to be that guy - the sortCriteria key must have been properly escaped, in this case - “Segment Start Date\/Time”.

1 Like