Return interfaces sorted based on interface name
Sort interfaces by natural sort order before returning result dictionary
from ifaces_array2dict()
.
Reading interfaces from /sys might return them in different order based on used tool.
See difference between order of items for os.listdir()
vs ls
in shell.
It will be more useful for consumer of turrishw to get interfaces sorted in resulting dictionary to avoid dealing with the possibly random order of interfaces.
Edited by Martin Matějek