stable-diffusion-webui
stable-diffusion-webui copied to clipboard
feat: Allows the XYZ plot to be sorted alphabetically
Description
The XYZ plot currently lists options in an order that seems random, likely reflecting their UI placement. This can make locating specific options challenging, particularly as extensions are adding items to the list.
In this PR:
- added a simple option to sort XYZ Plot options alphabetically
- created a copy of
axis_optionsand applied sorting during the XYZ Plot UI rendering - kept "Nothing" as the first option
Screenshots/videos:
| Before | After |
|---|---|
| Options are organized by functionality, with related items like Sampler and Hires-Sampler placed together. | Options are sorted alphabetically. |
Settings option:
Checklist:
- [x] I have read contributing wiki page
- [x] I have performed a self-review of my own code
- [x] My code follows the style guidelines
- [x] My code passes tests
- Unable to verify tests fully. My MacBook Pro M3pro on master without any changes does not pass all tests.
- Changes in this PR are UI only. No changes to Python or other server-side code. It is unlikely that these changes will affect existing functionality.
- Github test passes