Closed cederberg closed 10 years ago
Via email from Matthew Walker:
From Current sorting (since OIDs are treated as Strings) results in inaccuracies like this: 1.3.6.1.2.1.33.1.9.1.0 1.3.6.1.2.1.33.1.9.10.0 1.3.6.1.2.1.33.1.9.2.0
From Current sorting (since OIDs are treated as Strings) results in inaccuracies like this:
1.3.6.1.2.1.33.1.9.1.0 1.3.6.1.2.1.33.1.9.10.0 1.3.6.1.2.1.33.1.9.2.0
It seems the ObjectIdentifierValue.compareTo() method doesn't perform the proper numerical sorting, but only a simple `toString().compareTo()´.
ObjectIdentifierValue.compareTo()
Oddly enough, it seems that NumberValue.compareTo() is properly implemented with numerical comparison. So it shouldn't be too hard to fix this.
NumberValue.compareTo()
Also available in 2.10.alpha2 (found at http://www.mibble.org/download/development/index.html)
Via email from Matthew Walker:
It seems the
ObjectIdentifierValue.compareTo()
method doesn't perform the proper numerical sorting, but only a simple `toString().compareTo()´.Oddly enough, it seems that
NumberValue.compareTo()
is properly implemented with numerical comparison. So it shouldn't be too hard to fix this.