What controls the order of new assets in card view for a folder?



I've noticed that in card view, newly added assets can either be at the top of the folder UI or at the bottom? All are marked "new" and folder properties are typically the same, sometimes orderable is selected (I understand orderable is for moving around in list view - not card).   Because there are often 1000's of assets in a folder I want to force all new assets to top of the folder for all folders in the system.   I know we can filter on last modified or use list view but that is another set of clicks and it would be good to know how AEM treats ingesting content into folders. 

Accepted Solutions (0)

Answers (1)

Answers (1)




Technically the query that is run to collect the results in the card view of an assets folder is:


/jcr:root/content/dam/example/* order by @jcr:created descending


This means assets are sorted by the dam:Asset's jcr:created property in descending order.


Is it possible you are MOVING assets from one folder in AEM assets to another? Doing this does not change the moved asset's jcr:created date which might make it appear "older" than what you'd expect. 

Can you check the jcr:created dates on some of these assets that are showing up at the bottom of the folder listing and verifying their dam:Asset's jcr:created date is in fact newer (larger) than those assets that show first in card view?