Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

fix: use localeCompare in languages sort for reliable alphabetical order

Nikola Chetelyazov45b98716ec03
diff --git a/understand-anything-plugin/packages/core/src/analyzer/graph-builder.ts b/understand-anything-plugin/packages/core/src/analyzer/graph-builder.ts
index 8aa73b10..3a350349 100644
--- a/understand-anything-plugin/packages/core/src/analyzer/graph-builder.ts
+++ b/understand-anything-plugin/packages/core/src/analyzer/graph-builder.ts
@@ -406,7 +406,7 @@ export class GraphBuilder {
version: "1.0.0",
project: {
name: this.projectName,
- languages: [...this.languages].sort(),
+ languages: [...this.languages].sort((a, b) => a.localeCompare(b)),
frameworks: [],
description: "",
analyzedAt: new Date().toISOString(),