diff options
Diffstat (limited to 'isys')
-rw-r--r-- | isys/isys.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/isys/isys.py b/isys/isys.py index 030da6fa5..6db63e9ba 100644 --- a/isys/isys.py +++ b/isys/isys.py @@ -542,10 +542,19 @@ def compareDrives(first, second): return -1 elif (type1 > type2): return 1 - elif first < second: - return -1 - elif first > second: - return 1 + else: + len1 = len(first) + len2 = len(second) + + if (len1 < len2): + return -1 + elif (len1 > len2): + return 1 + else: + if (first < second): + return -1 + elif (first > second): + return 1 return 0 |