fix(tui): sort custom commands lower

This commit is contained in:
adamdotdevin
2025-08-25 11:29:56 -05:00
parent 0a0b363587
commit 6357136ca5

View File

@@ -92,6 +92,12 @@ func (r CommandRegistry) Sorted() []Command {
if b.Name == AppExitCommand {
return -1
}
if a.Custom {
return -1
}
if b.Custom {
return 1
}
return strings.Compare(string(a.Name), string(b.Name))
})