Skip to content

Commit 84dfde0

Browse files
committed
Sort roaming topology APs by name for deterministic layout
1 parent a516876 commit 84dfde0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/NetworkOptimizer.Web/Components/Shared/WiFi/RoamingAnalytics.razor

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@
402402
_nodePositions.Clear();
403403
if (_topology == null || _topology.Vertices.Count == 0) return;
404404

405+
// Sort vertices by name for deterministic layout
406+
_topology.Vertices.Sort((a, b) => string.Compare(a.Name, b.Name, StringComparison.OrdinalIgnoreCase));
407+
405408
// Arrange nodes in a circle
406409
var count = _topology.Vertices.Count;
407410
var centerX = 50.0;

0 commit comments

Comments
 (0)