From 1ea936d7c3d03d95f134d44b90610e649d7283ea Mon Sep 17 00:00:00 2001 From: Claude Code Date: Fri, 24 Oct 2025 09:52:42 +0000 Subject: [PATCH] Sort issues by ID when showing multiple issues When bd show displays multiple issues, they are now sorted by ID for consistent and predictable ordering: - bd show bd-7 bd-5 bd-6 displays them as bd-5, bd-6, bd-7 - Works with explicit IDs, --all-issues, and --priority flags - Applies to both text and JSON output - Uses alphabetical sorting which works for typical ID formats This makes the output easier to read and more predictable, especially when showing many issues at once. --- cmd/bd/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/bd/main.go b/cmd/bd/main.go index a1fa7dd2..8805281e 100644 --- a/cmd/bd/main.go +++ b/cmd/bd/main.go @@ -1831,6 +1831,12 @@ Examples: // Use provided IDs issueIDs = args } + + // Sort issue IDs for consistent ordering when showing multiple issues + if len(issueIDs) > 1 { + sort.Strings(issueIDs) + } + // If daemon is running, use RPC if daemonClient != nil { allDetails := []interface{}{}