diff --git a/src/cli/components/CommandPreview.tsx b/src/cli/components/CommandPreview.tsx index 1e512a6..8d54ff4 100644 --- a/src/cli/components/CommandPreview.tsx +++ b/src/cli/components/CommandPreview.tsx @@ -4,10 +4,12 @@ import { commands } from "../commands/registry"; import { colors } from "./colors"; // Compute command list once at module level since it never changes -const commandList = Object.entries(commands).map(([cmd, { desc }]) => ({ - cmd, - desc, -})); +const commandList = Object.entries(commands) + .map(([cmd, { desc }]) => ({ + cmd, + desc, + })) + .sort((a, b) => a.cmd.localeCompare(b.cmd)); export function CommandPreview({ currentInput,