[CDM] Order of items in Detached Repeat

Hi,

Our project uses CDM, and in our CDM form, we’ve got some Detached Repeats. But we’re running into a problem—the order of the items (documents) in the Detached Repeat doesn’t match the order of the document IDs in the database (see picture below)


This order matches what comes back from the LoadDocumentGraph API.

I think the order is based on how LoadDocumentGraph returns the data.

This is data in the database

My question is: How can I change the order of documents in the Detached Repeat to the way as I want?

More info: We are using a12 version 2023.06-ext5

Hey @anh-round-summit,
this issue was fixed with A12 2024.06-ext2.

As a workaround, if you need to stay on the 2023.06 release line, there is the possibility to change the order of the displayed items on client side since 2023.06-ext9. Please have a look here: Client Documentation > Section 4.17.3

Thanks, @felix-blazing-river, We’ve got the answer we needed now.