Order Variables alphabetically

Order variables in Variables Tab alphabetically by name
This commit is contained in:
Nikischin 2024-08-30 15:39:25 +02:00
parent c5c343c543
commit 0c3112166b

View File

@ -15,7 +15,7 @@ const KeyValueExplorer = ({ data = [], theme }) => {
<SecretToggle showSecret={showSecret} onClick={() => setShowSecret(!showSecret)} /> <SecretToggle showSecret={showSecret} onClick={() => setShowSecret(!showSecret)} />
<table className="border-collapse"> <table className="border-collapse">
<tbody> <tbody>
{data.map((envVar) => ( {data.toSorted((a, b) => a.name.localeCompare(b.name)).map((envVar) => (
<tr key={envVar.name}> <tr key={envVar.name}>
<td className="px-2 py-1">{envVar.name}</td> <td className="px-2 py-1">{envVar.name}</td>
<td className="px-2 py-1"> <td className="px-2 py-1">