diff --git a/src/main/java/com/impactupgrade/nucleus/service/segment/DBJobLoggingService.java b/src/main/java/com/impactupgrade/nucleus/service/segment/DBJobLoggingService.java index c113f7b73..0f5c01a7c 100644 --- a/src/main/java/com/impactupgrade/nucleus/service/segment/DBJobLoggingService.java +++ b/src/main/java/com/impactupgrade/nucleus/service/segment/DBJobLoggingService.java @@ -247,7 +247,8 @@ private List getJobs(Organization org, JobType jobType) { try (Session session = openSession()) { String queryString = "select j from Job j " + "where j.org.id = :orgId " + - "and j.jobType = :jobType"; + "and j.jobType = :jobType " + + "order by j.id desc"; Query query = session.createQuery(queryString); query.setParameter("orgId", org.getId()); query.setParameter("jobType", jobType);