From da90d86bbd191ceae354620d89d0cd5b9b2d8570 Mon Sep 17 00:00:00 2001 From: Michael Stevenson Date: Sun, 27 Nov 2022 09:50:03 -0800 Subject: [PATCH] Case insensitive filename sorting --- scripts/image_caption_gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/image_caption_gui.py b/scripts/image_caption_gui.py index 153a711..aeacc1f 100644 --- a/scripts/image_caption_gui.py +++ b/scripts/image_caption_gui.py @@ -35,7 +35,7 @@ class CaptionedImage(): # sort def __lt__(self, other): - return self.path < other.path + return str(self.path).lower() < str(other.path).lower() class ImageView(tk.Frame):