Sorter 2.0 - Advanced ComfyUI Image Organizer
Clean, Fast, Production-Ready
π GitHub Repo β
π Built with Python Β· GUI + CLI
08.08.25 #UPDATED: Added seed# to metadata extraction, improved CFG extraction, truncated LoRA strengths in the metadata to 1 decimal.
What is it?
Sorter 2.0 is your new behind-the-scenes MVP β a full-featured, GUI-enhanced tool for organizing large ComfyUI image sets. Whether you're training LoRAs, testing models, or curating galleries, Sorter 2.0 takes the chaos out of your output folders and turns them into order.
Completely redesigned from the ground up, this version is stable, production-ready, and packed with features pros actually need.
βStop wasting time trying to remember which model made which masterpiece β let Sorter 2.0 do the detective work.β
Sorter 2.0 is a tool that evolved out of my need to keep my ComfyUI image generations organized. At first it was a simple script to sort ComfyUI images by base model, for my own organization and for easier uploading to Civitai. It sorts a directory into sub-folders - each base model with it's own folder. I added metadata extraction which creates a .txt file for each image and folder flattening ( un-nesting all the images back into one group). I thought it would be cool if you could sort a batch by color for aesthetics, and the text search is cool to group generations by LoRAs or prompt phrases.
I knew very little about Python or coding when I started with just a simple script. It's been really fun, incredibly frustrating at times, and proved very useful for me in my workflow.
Sorter 2.0 was 100% vide coded using AI agents:
ChatGPT 4o and ChatGPT o4-mini
Codex AI coding agent through ChatGPT
Visual Studio Code x GitHub Copilot x Claude Sonnet 4 in agent mode.
π‘ Why Use It?
β Sort by Model / Base Checkpoint
Automatically detects base model (e.g. SDXL, Pony, Illustrious, etc.) via metadata β even supports LoRA stacks!π¨ Sort by Dominant Color
Auto-organize into color folders (red, green, blue, etc.) β great for visual themes or mood boards.π Search & Sort by Metadata
Locate images by LoRA, prompt, seed, or generation parameters. Supports ANY, ALL, and EXACT search modes.π Flatten & Clean Directories
Turn messy subfolders into one neat archive, rename duplicates, and nuke empty folders.π Track Every Move
All operations logged for reference. Includes error reports, performance stats, and audit trails.β¨ GUI or CLI? You Choose.
Compact, modern GUI powered by CustomTkinter β or run via command line for batch jobs and scripting.
π§ Who's It For?
If you're a ComfyUI power user, LoRA trainer, checkpoint tester, or even a casual image hoarder β this is for you. Especially if you're juggling:
Model mixing experiments
A/B testing different LoRA stacks
SDXL generations with 10k+ outputs
Prompt iteration or fine-tune prep
π§° What Youβll Need
Python 3.
CustomTkinter,Pillow, standard libsGUI:
python gui.pyCLI:
python main.pySetup:
pip install -r requirements.txt
πΎ Repo + Downloads
π DOWNLOAD .ZIP HERE - follow instructions in the README
also the code is here:
π GitHub: Sorter 2.0 Repository
π Includes both GUI and CLI tools, full README, and logging support
PLEASE LIKE, LOVE, SHARE, POST AND COMMENT IF YOU ENJOY SORTER 2.0
Questions, Bugs, Ideas?
Sorter 2.0 is a WIP, and as I update and grow I welcome users input. The full code for Sorter 2.0 is available on the Github repo, and my other repo SDXL_COMFYUI_CODE has the development tools and previous versions.
Shoot me a message or comment or open a pull request and let's make things better together.
π Coming Soon?
Workflow with lots of randomization options built
prompt builder improved generic HTML script


