codeCompleteSSAUse() iterated IsolatedSSANameScope::values, a StringMap, whose hash-based iteration order reverses under LLVM_REVERSE_ITERATION. This caused the SSA value completion items in the LSP server to appear in a non-deterministic order, breaking the CHECK-NEXT assertions in mlir-lsp-server/completion.test. Sort SSA value names alphabetically before emitting completion items. Assisted-by: Claude Code Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>