From 20f5bd8d747b93e6883bf913928952aeea0416f0 Mon Sep 17 00:00:00 2001 From: YSH Date: Sat, 31 Aug 2024 16:57:23 -0700 Subject: [PATCH] feat: XYZ plot sorting to ignore case --- scripts/xyz_grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/xyz_grid.py b/scripts/xyz_grid.py index c24d5a500..d5504f274 100644 --- a/scripts/xyz_grid.py +++ b/scripts/xyz_grid.py @@ -419,7 +419,7 @@ class Script(scripts.Script): def ui(self, is_img2img): _axis_options = copy(axis_options) if opts.xyz_plot_sort_alphabetical: - _axis_options.sort(key=lambda x: (x.label != "Nothing", x.label)) # Sort by label, but keep "Nothing" first + _axis_options.sort(key=lambda x: (x.label != "Nothing", x.label.lower())) # Sort by label, but keep "Nothing" first self.current_axis_options = [x for x in _axis_options if type(x) == AxisOption or x.is_img2img == is_img2img]