From 3dbac61e65991d9c4ccb32a4f0570ec0d08215ea Mon Sep 17 00:00:00 2001 From: Emilia Date: Wed, 22 Nov 2023 00:10:17 -0500 Subject: [PATCH] Sort images --- image-fill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image-fill.py b/image-fill.py index 8cc7e28..47a8e81 100644 --- a/image-fill.py +++ b/image-fill.py @@ -49,7 +49,7 @@ with FileInput(html_path, inplace=True) as html: for line in html: if "Images go below" in line: # Insert imgs here print(line, end='') - for img in imgs: + for img in sorted(imgs): print(img) else: print(line, end='')