From 638f924546615711e504b0c3d92b095ee92c6fab Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Thu, 16 Feb 2023 21:01:46 -0500 Subject: [PATCH] Sort the list of input images. --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index be3952ac..547e6fbc 100644 --- a/nodes.py +++ b/nodes.py @@ -640,7 +640,7 @@ class LoadImage: @classmethod def INPUT_TYPES(s): return {"required": - {"image": (os.listdir(s.input_dir), )}, + {"image": (sorted(os.listdir(s.input_dir)), )}, } CATEGORY = "image"