Show running downloads first.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 18 Oct 2013 04:24:37 +0000 (06:24 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 18 Oct 2013 04:24:37 +0000 (06:24 +0200)
src/main/java/net/pterodactylus/xdcc/ui/stdin/ListDownloadsCommand.java

index c352cdf..45838a8 100644 (file)
@@ -77,7 +77,7 @@ public class ListDownloadsCommand implements Command {
        @Override
        public State execute(State state, List<String> parameters, Writer outputWriter) throws IOException {
                int counter = 0;
-               List<Download> downloads = newArrayList(from(core.downloads()).toSortedList(Ordering.from(BY_NAME).compound(BY_RUNNING)));
+               List<Download> downloads = newArrayList(from(core.downloads()).toSortedList(Ordering.from(BY_RUNNING).compound(BY_NAME)));
                for (Download download : downloads) {
                        DccReceiver dccReceiver = download.dccReceiver();
                        if (dccReceiver == null) {