function createOsList (clusterId, clusters, operatingSystems) {
  if (!clusterId && !clusters && !clusters.has(clusterId)) {
    return []
  }

  const cluster = clusters && clusters.get(clusterId)
  const architecture = cluster && cluster.get('architecture')
  const osList =
    filterOsByArchitecture(operatingSystems, architecture)
      .toList()
      .map(os => ({
        id: os.get('id'),
        value: os.get('description'),
      }))
      .sort((a, b) => localeCompare(a.value, b.value))
      .toJS()

  return osList
}
/**
 * Return a normalized and sorted list of OS ready for use in a __SelectBox__ from
 * the Map of provided operating systems cross referenced to the given Cluster's
 * architecture.
 */
Return a normalized and sorted list of OS ready for use in a __SelectBox__ from
the Map of provided operating systems cross referenced to the given Cluster's
architecture.
Return a normalized and sorted list of OS ready for use in a __SelectBox__ from the Map of provided operating systems cross referenced to the given Cluster ' s architecture .
function createOsList (clusterId, clusters, operatingSystems) {
  if (!clusterId && !clusters && !clusters.has(clusterId)) {
    return []
  }
  const cluster = clusters && clusters.get(clusterId)
  const architecture = cluster && cluster.get('architecture')
  const osList =
    filterOsByArchitecture(operatingSystems, architecture)
      .toList()
      .map(os => ({
        id: os.get('id'),
        value: os.get('description'),
      }))
      .sort((a, b) => localeCompare(a.value, b.value))
      .toJS()
  return osList
}
function createOsList ( clusterId , clusters , operatingSystems ) { if ( ! clusterId && ! clusters && ! clusters . has ( clusterId ) ) { return [ ] } const cluster = clusters && clusters . get ( clusterId ) const architecture = cluster && cluster . get ( 'architecture' ) const osList = filterOsByArchitecture ( operatingSystems , architecture ) . toList ( ) . map ( os => ( { id : os . get ( 'id' ) , value : os . get ( 'description' ) , } ) ) . sort ( ( a , b ) => localeCompare ( a . value , b . value ) ) . toJS ( ) return osList }
Return a normalized and sorted list of OS ready for use in a __SelectBox__ from
 the Map of provided operating systems cross referenced to the given Cluster's
 architecture.
Return a normalized and sorted list of OS ready for use in a __SelectBox__ from the Map of provided operating systems cross referenced to the given Cluster ' s architecture .