Skip to content

Commit 459c4bf

Browse files
committed
Fixes #18959: Preserve ordering of terminations in cable traces
1 parent 918470a commit 459c4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/dcim/svg/cables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def draw_object_terminations(self, terminations, offset_x, width):
226226
nodes_height = 0
227227
nodes = []
228228
# Sort them by name to make renders more readable
229-
for i, term in enumerate(sorted(terminations, key=lambda x: str(x))):
229+
for i, term in enumerate(terminations):
230230
node = Node(
231231
position=(offset_x + i * width, self.cursor),
232232
width=width,

0 commit comments

Comments
 (0)