From cd69bb9851d0cdc053816873120d2a4410bd9715 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 26 Aug 2016 11:27:50 +0200 Subject: [PATCH] Please cherry-pick: - sorted list reversed --- .../user/activity/JobsUserActivityWebApplicationBean.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/java/org/mxchange/jjobs/beans/user/activity/JobsUserActivityWebApplicationBean.java b/src/java/org/mxchange/jjobs/beans/user/activity/JobsUserActivityWebApplicationBean.java index 6dbd5476..7c387ad7 100644 --- a/src/java/org/mxchange/jjobs/beans/user/activity/JobsUserActivityWebApplicationBean.java +++ b/src/java/org/mxchange/jjobs/beans/user/activity/JobsUserActivityWebApplicationBean.java @@ -17,6 +17,7 @@ package org.mxchange.jjobs.beans.user.activity; import java.text.MessageFormat; +import java.util.Collections; import java.util.GregorianCalendar; import java.util.LinkedHashMap; import java.util.LinkedList; @@ -49,6 +50,7 @@ import org.mxchange.jusercore.model.user.User; import org.mxchange.jusercore.model.user.activity.LogableUserActivity; import org.mxchange.jusercore.model.user.activity.UserActivityLog; import org.mxchange.jusercore.model.user.activity.UserActivityLogSessionBeanRemote; +import org.mxchange.jusercore.model.user.activity.comparator.UserActivityLogTimestampComparator; /** * A controller (bean) for user activity log @@ -443,6 +445,10 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple if (this.usersActivity.containsKey(user)) { // Return it list.addAll(this.usersActivity.get(user)); + + // Sort list and reverse it + Collections.sort(list, new UserActivityLogTimestampComparator()); + Collections.reverse(list); } // Return it -- 2.39.5