From: Roland Häder Date: Fri, 26 Aug 2016 09:27:50 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd69bb9851d0cdc053816873120d2a4410bd9715;p=jjobs-war.git Please cherry-pick: - sorted list reversed --- 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