From: David ‘Bombe’ Roden Date: Fri, 18 Oct 2013 04:24:37 +0000 (+0200) Subject: Show running downloads first. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1ab50825d6c2c67242c75d4ff9a602bd2c8cff0d;p=xudocci.git Show running downloads first. --- diff --git a/src/main/java/net/pterodactylus/xdcc/ui/stdin/ListDownloadsCommand.java b/src/main/java/net/pterodactylus/xdcc/ui/stdin/ListDownloadsCommand.java index c352cdf..45838a8 100644 --- a/src/main/java/net/pterodactylus/xdcc/ui/stdin/ListDownloadsCommand.java +++ b/src/main/java/net/pterodactylus/xdcc/ui/stdin/ListDownloadsCommand.java @@ -77,7 +77,7 @@ public class ListDownloadsCommand implements Command { @Override public State execute(State state, List parameters, Writer outputWriter) throws IOException { int counter = 0; - List downloads = newArrayList(from(core.downloads()).toSortedList(Ordering.from(BY_NAME).compound(BY_RUNNING))); + List downloads = newArrayList(from(core.downloads()).toSortedList(Ordering.from(BY_RUNNING).compound(BY_NAME))); for (Download download : downloads) { DccReceiver dccReceiver = download.dccReceiver(); if (dccReceiver == null) {