[#152] HP devices with port names "D##" not sorted by portsort.js
In naturalsort there is handling for Float, Decimal and Scientific notation. This looks for numbers like: '10.04f','10.039F','10.038d','1.528535047e5' It was breaking port sorting for ports named like "D1", "D10" etc. Have removed support for sorting these numbers as it's unlikely we need that in Netdisco, for now.
This commit is contained in:
@@ -146,6 +146,18 @@
|
||||
],[
|
||||
'1:1','1:2','1:10','1:11'
|
||||
],'Extreme');
|
||||
wrapTest(
|
||||
[
|
||||
'D10','D11','D2','D1', 'A30', 'A3'
|
||||
],[
|
||||
'A3', 'A30', 'D1','D2','D10','D11'
|
||||
],'HP A & D');
|
||||
wrapTest(
|
||||
[
|
||||
'B10','B11','B2','B1', 'A30', 'A3'
|
||||
],[
|
||||
'A3', 'A30', 'B1','B2','B10','B11'
|
||||
],'HP A & B');
|
||||
wrapTest(
|
||||
[
|
||||
'10GigabitEthernet1/1/12',
|
||||
|
||||
Reference in New Issue
Block a user