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;
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
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