Show system drives last

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-06-22 16:53:44 +02:00
parent b32c4ee728
commit ba16995070

View File

@ -134,6 +134,8 @@ function storeReducer(
}
drives = _.sortBy(drives, [
// System drives last
(d) => !!d.isSystem,
// Devices with no devicePath first (usbboot)
(d) => !!d.devicePath,
// Then sort by devicePath (only available on Linux with udev) or device