function sortDisksForDisplay (disks, locale = appLocale) {
  return disks.sort((a, b) => {
    const aBoot = a.get('bootable')
    const bBoot = b.get('bootable')

    return (aBoot && !bBoot) ? -1 : (
      (!aBoot && bBoot) ? 1 : localeCompare(a.get('name'), b.get('name'), locale)
    )
  })
}
/*
 * Sort an Immutable List of Maps (set of disks) for display on the VmDisks list.
 * Bootable drives sort first, then sorted number aware alphabetically.
 */
Sort an Immutable List of Maps (set of disks) for display on the VmDisks list.
Bootable drives sort first, then sorted number aware alphabetically.
Sort an Immutable List of Maps ( set of disks ) for display on the VmDisks list . Bootable drives sort first then sorted number aware alphabetically .
function sortDisksForDisplay (disks, locale = appLocale) {
  return disks.sort((a, b) => {
    const aBoot = a.get('bootable')
    const bBoot = b.get('bootable')
    return (aBoot && !bBoot) ? -1 : (
      (!aBoot && bBoot) ? 1 : localeCompare(a.get('name'), b.get('name'), locale)
    )
  })
}
function sortDisksForDisplay ( disks , locale = appLocale ) { return disks . sort ( ( a , b ) => { const aBoot = a . get ( 'bootable' ) const bBoot = b . get ( 'bootable' ) return ( aBoot && ! bBoot ) ? - 1 : ( ( ! aBoot && bBoot ) ? 1 : localeCompare ( a . get ( 'name' ) , b . get ( 'name' ) , locale ) ) } ) }
Sort an Immutable List of Maps (set of disks) for display on the VmDisks list.
Sort an Immutable List of Maps ( set of disks ) for display on the VmDisks list .