import java.io.BufferedReader;
import java.io.Reader;
+import java.util.Collections;
import java.util.List;
import net.pterodactylus.xdcc.core.Core;
import net.pterodactylus.xdcc.data.Pack;
import com.google.common.collect.Lists;
-import com.google.common.collect.Ordering;
import com.google.common.util.concurrent.AbstractExecutionThreadService;
/**
}
}
}
+ Collections.sort(lastResult);
int counter = 0;
- for (Result result : Ordering.natural().sortedCopy(lastResult)) {
+ for (Result result : lastResult) {
System.out.println(String.format("[%d] %s (%s) from %s (#%s) on %s", counter++, result.pack().name(), result.pack().size(), result.bot().name(), result.pack().id(), result.bot().network().name()));
}
System.out.println("End of Search.");