WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.22k stars 177 forks source link

Load image match sequence problem #273

Open ob1024 opened 1 year ago

ob1024 commented 1 year ago

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.

WASasquatch commented 1 year ago

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.

lkytk commented 8 months ago

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.