Use git for-each-ref with --sort=-committerdate to order branches by last commit date (newest first), matching lazygit's default behavior. Added e2e test with controlled commit dates to verify ordering. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>