Skip to content

Add sorting feature to export profiles dropdown#90

Open
michael-lucas-net wants to merge 2 commits into
tg123:masterfrom
michael-lucas-net:sort-button
Open

Add sorting feature to export profiles dropdown#90
michael-lucas-net wants to merge 2 commits into
tg123:masterfrom
michael-lucas-net:sort-button

Conversation

@michael-lucas-net

Copy link
Copy Markdown

Add a button next to the “Rename” button to sort the list alphabetically by name.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds alphabetical sorting functionality to the export profiles dropdown menu. The implementation refactors the dropdown initialization into a reusable function and introduces a "Sort" button alongside the existing "Rename" button.

Key Changes

  • Refactored dropdown initialization logic into DropdownInit() and RefreshDropdown() helper functions for reusability
  • Implemented SortProfilesByName() function that sorts profiles alphabetically (case-insensitive) while maintaining stable sort order for duplicate names
  • Added RestoreSelection() function to preserve the user's selected profile after sorting
  • Added a "Sort" button next to the "Rename" button in the UI

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tg123

tg123 commented Dec 1, 2025

Copy link
Copy Markdown
Owner

very nice feature to make profile organized:

my 2 cents:
make the button organize > -> sort by name
-> sort by time
....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants