فهرست منبع

Merge pull request #19256 from netbox-community/18959-cable-trace-terminations-ordering

Fixes #18959: Preserve ordering of terminations in cable traces
bctiemann 9 ماه پیش
والد
کامیت
e0b6a31504
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      netbox/dcim/svg/cables.py

+ 1 - 2
netbox/dcim/svg/cables.py

@@ -225,8 +225,7 @@ class CableTraceSVG:
         """
         nodes_height = 0
         nodes = []
-        # 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(
                 position=(offset_x + i * width, self.cursor),
                 width=width,