content: import React from 'react'
  import { connect } from 'react-redux'
  
  import Instance from './Instance'
  
  export default connect(mapStateToProps)(({
    institutions
  }) =>
    <div>
      {institutions.sort((a, b) => {
        if (a.name > b.name) return 1
        if (a.name < b.name) return -1
        return 0
      }).map(institution =>
        <Instance
          key={institution._id}
          institution={institution}
        />
      )}
    </div>
  )
  
  function mapStateToProps (state, ownProps) {
    return {
      institutions: Object.values(state.institutions.data)
    }
  }
  