diff --git a/deluge/ui/console/commands/add.py b/deluge/ui/console/commands/add.py index c349f1e59..e54266180 100644 --- a/deluge/ui/console/commands/add.py +++ b/deluge/ui/console/commands/add.py @@ -139,6 +139,9 @@ class Command(BaseCommand): else: # \o/ Unix p += "/" ret.append(p) + + ret = sorted(ret, key=lambda p: os.stat(p).st_mtime, reverse=True) + for i in range(0, len(ret)): ret[i] = ret[i].replace(" ", r"\ ") return ret