From 98c71739f83b71cfae0fbf7b0a95fe09b43dec11 Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 30 May 2020 01:37:24 +0100 Subject: [PATCH] Fix user ordering in the editor --- .../me/lucko/luckperms/common/commands/misc/EditorCommand.java | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/misc/EditorCommand.java b/common/src/main/java/me/lucko/luckperms/common/commands/misc/EditorCommand.java index 4badc8ce8..f87c79e5a 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/misc/EditorCommand.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/misc/EditorCommand.java @@ -113,6 +113,7 @@ public class EditorCommand extends SingleCommand { users.values().stream() .sorted(Comparator .comparingInt(u -> u.getCachedData().getMetaData(QueryOptions.nonContextual()).getWeight(MetaCheckEvent.Origin.INTERNAL)) + .reversed() .thenComparing(User::getFormattedDisplayName, String.CASE_INSENSITIVE_ORDER) ) .forEach(holders::add);