aboutsummaryrefslogtreecommitdiffstats
path: root/alfred
diff options
context:
space:
mode:
Diffstat (limited to 'alfred')
-rw-r--r--alfred/mlmmj.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/alfred/mlmmj.py b/alfred/mlmmj.py
index 8c3749b..b58a669 100644
--- a/alfred/mlmmj.py
+++ b/alfred/mlmmj.py
@@ -135,8 +135,9 @@ def cmd_list(bot, trigger):
return
items = sorted(
- f for f in os.listdir(ARCHIVE)
- if os.path.isfile(os.path.join(ARCHIVE, f)) and not f.endswith('.html')
+ (f for f in os.listdir(ARCHIVE)
+ if os.path.isfile(os.path.join(ARCHIVE, f)) and not f.endswith('.html')),
+ key=lambda f: int(f) if f.isdigit() else f
)
if not items:
bot.say("archive: empty")