feat: add alphabetical sorting option for folders in collections (#6190) #6206
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: add alphabetical sorting option for folders in collections (#6190)
This PR adds support for alphabetical sorting of folders within collections.
Closes #6190.
Problem Statement
Older versions of Bruno (up to 2.2.0) automatically sorted folders alphabetically. This behavior was removed in later releases, creating confusion for users who depended on consistent folder ordering, especially in large collections or shared team setups. Many users requested an option to restore alphabetical sorting while preserving manual drag-and-drop workflows.
Solution
A new per-collection folder sorting mode is introduced, allowing users to choose between:
Key Features
bruno.jsonfor consistent team behaviorItem 2 < Item 10)Implementation Details
Backend (bruno-electron)
folderSortfield to thebruno.jsonschema ('manual'by default)renderer:update-folder-sortto persist changesState Management (Redux)
updateFolderSortreducer to the collections sliceUtilities
sortByNameOnly()— locale-aware alphabetical comparisonsortItemsBySortMode()— dispatches sorting logic based on modeUI Components
CollectionandCollectionItemto apply new sortingreact-dndUser Experience Flow
bruno.jsonContribution Checklist
Closes #6190)