fix(ci): order pipeline jobs by ID on ties

Description

Keep glab ci view pipeline jobs in creation order when GitLab returns jobs and bridges with identical CreatedAt timestamps.

Both sorters retain ascending timestamp order and now use ascending job ID as a deterministic tiebreaker. This restores test → build → release ordering for the reported pipeline instead of displaying equal-timestamp jobs right to left.

Resolves #8305 (closed)

How has this been tested?

  • Focused equal-CreatedAt job and bridge ordering tests (2/2 passed)
  • go test -count=1 ./internal/api
  • TERM=xterm-256color make test-changed (3,069 tests passed, 8 skipped)
  • make build
  • make lint (0 issues with pinned golangci-lint 2.12.2)
  • Lefthook 2.0.2 pre-push: build, changed-package tests, lint, and applicable generated checks passed

Merge request reports

Loading