We have a requirement where we have to provide flexibility to sort the content based on Published time.
The Publish date can be retrieved using: “jcr:content: cq:lastReplicated” property. But the problem is this property is set only on Author instance and not on Publish instance.
I analyzed and found that when the content is replicated for the first time for Author to Publish, the replication date is set in author for “jcr:content: cq:lastReplicated” property and “jcr:created” property is created for same content in Publish instance and has same time stamp. With subsequent replication, the “jcr:created” property remains same and contains timestamp of very first instance it was created in publish instance. We need property which updated constantly in PUBLISH instance associated with content which can suggest when the content is last published.