was-node-suite-comfyui icon indicating copy to clipboard operation
was-node-suite-comfyui copied to clipboard

Load image match sequence problem

Open ob1024 opened this issue 1 year ago • 2 comments

When using load image latch, the order of the images is changed and loaded, but can't the order be printed out properly.. For example, the order of the image and the file name start at 0,1,2,3,4,5 and the output comes in 0,5,3,2,1. ... I think I came in a few days ago in a different order, but now I've been coming in strangely for a few days. How do I do it? Please help me.

ob1024 avatar Nov 17 '23 02:11 ob1024

There hasn't been any changes to the Image Batch Load, so that's weird. The list of filenames is just passed through the sorted() function. Which would make the files align in Ascending Lexicographic and Numeric order.

WASasquatch avatar Nov 17 '23 17:11 WASasquatch

Hi, I don't know if it the same problem, but I added a natural sorting function to get the proper sorting order (from this example), not sure if it is the best way though.

lkytk avatar Mar 03 '24 11:03 lkytk