Skip to content

Commit e29fd45

Browse files
committed
Sort discovered hosts
1 parent cf353e5 commit e29fd45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vxi11/vxi11.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def list_devices(ip=None, timeout=1):
518518

519519
hosts.extend(l)
520520

521-
return hosts
521+
return sorted(hosts, key=lambda ip: tuple(int(part) for part in ip.split('.')))
522522

523523

524524
def list_resources(ip=None, timeout=1):

0 commit comments

Comments
 (0)