diff --git a/hibernate-envers/src/main/java/org/hibernate/envers/reader/AuditReaderImpl.java b/hibernate-envers/src/main/java/org/hibernate/envers/reader/AuditReaderImpl.java index bf501064f8..c804594f4d 100644 --- a/hibernate-envers/src/main/java/org/hibernate/envers/reader/AuditReaderImpl.java +++ b/hibernate-envers/src/main/java/org/hibernate/envers/reader/AuditReaderImpl.java @@ -151,6 +151,7 @@ public class AuditReaderImpl implements AuditReaderImplementor { return createQuery().forRevisionsOfEntity(cls, entityName, false, true) .addProjection(AuditEntity.revisionNumber()) + .addOrder(AuditEntity.revisionNumber().asc()) .add(AuditEntity.id().eq(primaryKey)) .getResultList(); }