Skip to content

Commit

Permalink
Order Variables alphabetically (#2982)
Browse files Browse the repository at this point in the history
Order variables in Variables Tab alphabetically by name
  • Loading branch information
nikischin authored Jan 13, 2025
1 parent 15b8709 commit 72b8c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bruno-app/src/components/VariablesEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const KeyValueExplorer = ({ data = [], theme }) => {
<SecretToggle showSecret={showSecret} onClick={() => setShowSecret(!showSecret)} />
<table className="border-collapse">
<tbody>
{data.map((envVar) => (
{data.toSorted((a, b) => a.name.localeCompare(b.name)).map((envVar) => (
<tr key={envVar.name}>
<td className="px-2 py-1">{envVar.name}</td>
<td className="px-2 py-1">
Expand Down

0 comments on commit 72b8c54

Please sign in to comment.