How are Content Fragment Lists sorted if multiple Fragments have the same value for the Order By Field? | Community
Skip to main content
Level 2
Dec 2, 2022 9:02 AM UTC
Solved

How are Content Fragment Lists sorted if multiple Fragments have the same value for the Order By Field?

I am using a Content Fragment list component(v1) to display content fragments, and I have set the Order By field.

If multiple content fragments have the same value for this field, what order will they be in? Will they be randomly sorted, or sorted by some other fields like Created? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Dec 5, 2022 8:03 AM UTC

Hi,

It depends on the parent node. If parent node is node support the order then alphabetical order will be followed e.g sling:OrderedFolder otherwise the order of creation e.g. sling:Folder

Arun Patidar

4 replies

Mohit_KBansal
Employee
Dec 2, 2022 2:33 PM UTC

If the values are the same of the field selected for Order By, then their node hierarchy will be used to define precedence.

Translate
arunpatidar
New Participant
Dec 2, 2022 10:21 AM UTC

Hi @coldbuffalo
It is not possible to use more than one sort order.

If the two CF have the same sort value then the ordering is the node in the tree/AEM.

Translate
Arun Patidar
Level 2
Dec 5, 2022 5:07 AM UTC

Thank you for your explanation. Could you please explain how the order of nodes in the tree is determined? Is it based on the order they are created, or the alphabetical order of their names?

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Dec 5, 2022 8:03 AM UTC

Hi,

It depends on the parent node. If parent node is node support the order then alphabetical order will be followed e.g sling:OrderedFolder otherwise the order of creation e.g. sling:Folder

Translate
Arun Patidar