mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-19 23:41:35 +02:00
Fixes #18959: Preserve ordering of terminations in cable traces
This commit is contained in:
@@ -226,7 +226,7 @@ class CableTraceSVG:
|
|||||||
nodes_height = 0
|
nodes_height = 0
|
||||||
nodes = []
|
nodes = []
|
||||||
# Sort them by name to make renders more readable
|
# Sort them by name to make renders more readable
|
||||||
for i, term in enumerate(sorted(terminations, key=lambda x: str(x))):
|
for i, term in enumerate(terminations):
|
||||||
node = Node(
|
node = Node(
|
||||||
position=(offset_x + i * width, self.cursor),
|
position=(offset_x + i * width, self.cursor),
|
||||||
width=width,
|
width=width,
|
||||||
|
|||||||
Reference in New Issue
Block a user