Skip to content

Commit e0b6a31

Browse files
authored
Merge pull request #19256 from netbox-community/18959-cable-trace-terminations-ordering
Fixes #18959: Preserve ordering of terminations in cable traces
2 parents 918470a + 8567aa9 commit e0b6a31

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

netbox/dcim/svg/cables.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@ def draw_object_terminations(self, terminations, offset_x, width):
225225
"""
226226
nodes_height = 0
227227
nodes = []
228-
# Sort them by name to make renders more readable
229-
for i, term in enumerate(sorted(terminations, key=lambda x: str(x))):
228+
for i, term in enumerate(terminations):
230229
node = Node(
231230
position=(offset_x + i * width, self.cursor),
232231
width=width,

0 commit comments

Comments
 (0)