Converted more Collection sorts to internal sorting methods.

This commit is contained in:
ProSavage 2019-02-12 07:50:40 -04:00
parent 8ee1b1da52
commit c2a90e857f

View File

@ -47,7 +47,7 @@ public class CmdTop extends FCommand {
// TODO: Better way to sort?
if (criteria.equalsIgnoreCase("members")) {
Collections.sort(factionList, new Comparator<Faction>() {
factionList.sort(new Comparator<Faction>() {
@Override
public int compare(Faction f1, Faction f2) {
int f1Size = f1.getFPlayers().size();
@ -104,7 +104,7 @@ public class CmdTop extends FCommand {
}
});
} else if (criteria.equalsIgnoreCase("online")) {
Collections.sort(factionList, new Comparator<Faction>() {
factionList.sort(new Comparator<Faction>() {
@Override
public int compare(Faction f1, Faction f2) {
int f1Size = f1.getFPlayersWhereOnline(true).size();