mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Fix user ordering in the editor
This commit is contained in:
parent
25551641fc
commit
98c71739f8
@ -113,6 +113,7 @@ public class EditorCommand extends SingleCommand {
|
|||||||
users.values().stream()
|
users.values().stream()
|
||||||
.sorted(Comparator
|
.sorted(Comparator
|
||||||
.<User>comparingInt(u -> u.getCachedData().getMetaData(QueryOptions.nonContextual()).getWeight(MetaCheckEvent.Origin.INTERNAL))
|
.<User>comparingInt(u -> u.getCachedData().getMetaData(QueryOptions.nonContextual()).getWeight(MetaCheckEvent.Origin.INTERNAL))
|
||||||
|
.reversed()
|
||||||
.thenComparing(User::getFormattedDisplayName, String.CASE_INSENSITIVE_ORDER)
|
.thenComparing(User::getFormattedDisplayName, String.CASE_INSENSITIVE_ORDER)
|
||||||
)
|
)
|
||||||
.forEach(holders::add);
|
.forEach(holders::add);
|
||||||
|
Loading…
Reference in New Issue
Block a user