[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 1/3] Sort Storage.devices using isys.compareDrives for consistency.



---
 storage/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 2dbbfb8..bc63e43 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -370,7 +370,7 @@ class Storage(object):
     def devices(self):
         """ A list of all the devices in the device tree. """
         devices = self.devicetree.devices
-        devices.sort(key=lambda d: d.path)
+        devices.sort(key=lambda d: d.path, cmp=isys.compareDrives)
         return devices
 
     @property
-- 
1.6.5.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]