aboutsummaryrefslogtreecommitdiffstats
path: root/alfred
diff options
context:
space:
mode:
authorAhmed <git@gumx.cc>2026-06-18 16:24:03 +0300
committerAhmed <git@gumx.cc>2026-06-18 16:24:03 +0300
commit6132c2374bd8e06fd79d4d9a236f2c770e0390db (patch)
tree6a615ec1f6e295c2a5e846ac66bb1b71b81c8c96 /alfred
parentde83bfadcc4807c07ba562f5d0ca599f126e2639 (diff)
fix: "alfred list ls command ordering
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")