From 03fcd5e89353941745997e472727c42f19309e61 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Sun, 15 Sep 2019 15:38:19 +0300 Subject: [PATCH] Sorted nicknames most recent first /player page --- .../plan/delivery/rendering/json/PlayerJSONParser.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/json/PlayerJSONParser.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/json/PlayerJSONParser.java index 76c624691..dd8617de8 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/json/PlayerJSONParser.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/json/PlayerJSONParser.java @@ -38,6 +38,7 @@ import com.djrapitops.plan.storage.database.DBSystem; import com.djrapitops.plan.storage.database.Database; import com.djrapitops.plan.storage.database.queries.containers.PlayerContainerQuery; import com.djrapitops.plan.storage.database.queries.objects.ServerQueries; +import com.djrapitops.plan.utilities.comparators.DateHolderRecentComparator; import org.apache.commons.text.StringEscapeUtils; import javax.inject.Inject; @@ -275,6 +276,7 @@ public class PlayerJSONParser { Map serverNames, Formatter dateFormatter ) { + nicknames.sort(new DateHolderRecentComparator()); List mapped = new ArrayList<>(); for (com.djrapitops.plan.delivery.domain.Nickname nickname : nicknames) { mapped.add(new Nickname(