function createClusterList (clusters, dataCenterId = null) {
  const clusterList =
    clusters
      .toList()
      .filter(cluster =>
        cluster.get('canUserUseCluster') &&
        (dataCenterId === null
          ? true
          : cluster.get('dataCenterId') === dataCenterId)
      )
      .map(cluster => ({
        id: cluster.get('id'),
        value: cluster.get('name'),
        datacenter: cluster.get('dataCenterId'),
      }))
      .sort((a, b) => localeCompare(a.value, b.value))
      .toJS()

  return clusterList
}
/**
 * Return a normalized and sorted list of clusters ready for use in a __SelectBox__ from
 * the Map of provided clusters, optionally limiting to clusters in a given data center.
 */
Return a normalized and sorted list of clusters ready for use in a __SelectBox__ from
the Map of provided clusters, optionally limiting to clusters in a given data center.
Return a normalized and sorted list of clusters ready for use in a __SelectBox__ from the Map of provided clusters optionally limiting to clusters in a given data center .
function createClusterList (clusters, dataCenterId = null) {
  const clusterList =
    clusters
      .toList()
      .filter(cluster =>
        cluster.get('canUserUseCluster') &&
        (dataCenterId === null
          ? true
          : cluster.get('dataCenterId') === dataCenterId)
      )
      .map(cluster => ({
        id: cluster.get('id'),
        value: cluster.get('name'),
        datacenter: cluster.get('dataCenterId'),
      }))
      .sort((a, b) => localeCompare(a.value, b.value))
      .toJS()
  return clusterList
}
function createClusterList ( clusters , dataCenterId = null ) { const clusterList = clusters . toList ( ) . filter ( cluster => cluster . get ( 'canUserUseCluster' ) && ( dataCenterId === null ? true : cluster . get ( 'dataCenterId' ) === dataCenterId ) ) . map ( cluster => ( { id : cluster . get ( 'id' ) , value : cluster . get ( 'name' ) , datacenter : cluster . get ( 'dataCenterId' ) , } ) ) . sort ( ( a , b ) => localeCompare ( a . value , b . value ) ) . toJS ( ) return clusterList }
Return a normalized and sorted list of clusters ready for use in a __SelectBox__ from
 the Map of provided clusters, optionally limiting to clusters in a given data center.
Return a normalized and sorted list of clusters ready for use in a __SelectBox__ from the Map of provided clusters optionally limiting to clusters in a given data center .