This commit is contained in:
2026-02-13 21:33:21 +01:00
parent fd29e602e8
commit 4282b8d8cb
2 changed files with 10 additions and 5 deletions
+7
View File
@@ -7,6 +7,7 @@ import (
"os"
"os/exec"
"path/filepath"
"sort"
"strings"
"sync"
"time"
@@ -324,6 +325,12 @@ func (m *Manager) GetStacks() []Stack {
for _, s := range m.stacks {
result = append(result, *s)
}
// Sort alphabetically by display name for consistent UI ordering
sort.Slice(result, func(i, j int) bool {
return result[i].Meta.DisplayName < result[j].Meta.DisplayName
})
return result
}