Sort bots with running transfers last.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 18 Oct 2013 04:23:21 +0000 (06:23 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 18 Oct 2013 04:23:21 +0000 (06:23 +0200)
src/main/java/net/pterodactylus/xdcc/ui/stdin/Result.java

index 8532a79..e8a52c1 100644 (file)
@@ -197,9 +197,9 @@ public class Result implements Comparable<Result> {
        @Override
        public int compareTo(Result result) {
                return ComparisonChain.start()
+                               .compare(this, result, botsWithRunningTransfersComparator)
                                .compare(this, result, packArchiveComparator)
                                .compare(this, result, botNameComparator)
-                               .compare(this, result, botsWithRunningTransfersComparator)
                                .compare(this, result, packNameComparator).result();
        }