src/ScaleSlider.js
/**
   * Sorts the color scale for makeGradient
   */
Sorts the color scale for makeGradient
Sorts the color scale for makeGradient
sortScale () {
    const newScale = _.sortBy(this.props.scale, element => {
      if (element.type === 'value') {
        return element.value
      } else {
        return this.props.stats[element.type]
      }
    })
    return newScale
  }
sortScale ( ) { const newScale = _ . sortBy ( this . props . scale , element => { if ( element . type === 'value' ) { return element . value } else { return this . props . stats [ element . type ] } } ) return newScale }
Sorts the color scale for makeGradient
Sorts the color scale for makeGradient