message: Sort devices by device path on Linux
  Changelog-entry: Sort devices by device path on Linux
  Change-type: patch
diff: @@ -124,7 +124,7 @@ function storeReducer(
  });
  }
  - const drives = action.data;
  + let drives = action.data;
  if (!_.isArray(drives) || !_.every(drives, _.isObject)) {
  throw errors.createError({
  @@ -132,6 +132,13 @@ function storeReducer(
  });
  }
  + drives = _.sortBy(drives, [
  + // Devices with no devicePath first (usbboot)
  + d => !!d.devicePath,
  + // Then sort by devicePath (only available on Linux with udev) or device
  + d => d.devicePath || d.device,
  + ]);
  +
  const newState = state.set('availableDrives', Immutable.fromJS(drives));
  const selectedDevices = newState.getIn(['selection', 'devices']).toJS();
  