core icon indicating copy to clipboard operation
core copied to clipboard

Listing of versions in Content's History Tab not keeping the order

Open dsilvam opened this issue 11 years ago • 3 comments

screen shot 2015-08-14 at 3 50 33 pm

Listing is supposed to be order by mod date desc, but that is only true when all the versions are in cache. When there are versions not present in the cache, and are retrieved from DB, the resulting list is not in order.

List returned here is sorted: https://github.com/dotCMS/core/blob/master-3.5/src/com/dotcms/content/elasticsearch/business/ESContentFactoryImpl.java#L905

But list here is not: https://github.com/dotCMS/core/blob/master-3.5/src/com/dotcms/content/elasticsearch/business/ESContentFactoryImpl.java#L926

dsilvam avatar Aug 14 '15 20:08 dsilvam

We've noticed this same issue... history-sort

jcanup avatar Nov 12 '15 20:11 jcanup

https://my.dotcms.com/tickets/detail.dot?id=c70efb6f-9d83-405d-a38b-e175302c198a

levosgien avatar Feb 04 '16 20:02 levosgien

Dupe: https://github.com/dotCMS/core/issues/13796

oarrietadotcms avatar Aug 22 '18 22:08 oarrietadotcms