Converted more Collection sorts to internal sorting methods.
This commit is contained in:
parent
8ee1b1da52
commit
c2a90e857f
@ -47,7 +47,7 @@ public class CmdTop extends FCommand {
|
|||||||
|
|
||||||
// TODO: Better way to sort?
|
// TODO: Better way to sort?
|
||||||
if (criteria.equalsIgnoreCase("members")) {
|
if (criteria.equalsIgnoreCase("members")) {
|
||||||
Collections.sort(factionList, new Comparator<Faction>() {
|
factionList.sort(new Comparator<Faction>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(Faction f1, Faction f2) {
|
public int compare(Faction f1, Faction f2) {
|
||||||
int f1Size = f1.getFPlayers().size();
|
int f1Size = f1.getFPlayers().size();
|
||||||
@ -104,7 +104,7 @@ public class CmdTop extends FCommand {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (criteria.equalsIgnoreCase("online")) {
|
} else if (criteria.equalsIgnoreCase("online")) {
|
||||||
Collections.sort(factionList, new Comparator<Faction>() {
|
factionList.sort(new Comparator<Faction>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(Faction f1, Faction f2) {
|
public int compare(Faction f1, Faction f2) {
|
||||||
int f1Size = f1.getFPlayersWhereOnline(true).size();
|
int f1Size = f1.getFPlayersWhereOnline(true).size();
|
||||||
|
Loading…
Reference in New Issue
Block a user