diff --git a/src/img2pdf.py b/src/img2pdf.py index 9f9cba7..efc56c2 100755 --- a/src/img2pdf.py +++ b/src/img2pdf.py @@ -2510,7 +2510,7 @@ def input_images(path_expr): # paths without wildcards that do not exist will trigger "does not exist" from glob import glob - paths = glob(path_expr) + paths = sorted(glob(path_expr)) for path in paths: try: if os.path.getsize(path) == 0: