Update src/lib/graph-view.ts
Co-authored-by: qodo-code-review[bot] <151058649+qodo-code-review[bot]@users.noreply.github.com>
This commit is contained in:
parent
d49f466fa9
commit
86a8068584
1 changed files with 4 additions and 1 deletions
|
|
@ -162,7 +162,10 @@ function applyFocusWorkspaceLayout(nodes: GraphNode[], edges: GraphEdge[], focus
|
|||
if (b.id === focusId) {
|
||||
return 1;
|
||||
}
|
||||
return a.id.localeCompare(b.id);
|
||||
if (a.position.x !== b.position.x) {
|
||||
return a.position.x - b.position.x;
|
||||
}
|
||||
return a.position.y - b.position.y;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue