Order nodes alphabetically after other priority rules have been applied

This commit is contained in:
Luck 2016-09-19 17:31:00 +01:00
parent bf247b71e1
commit f52a106165
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -74,6 +74,6 @@ public class PriorityComparator implements Comparator<Node> {
return o1.getWildcardLevel() > o2.getWildcardLevel() ? 1 : -1;
}
return 1;
return o1.getPermission().compareToIgnoreCase(o2.getPermission()) == 1 ? -1 : 1;
}
}