src/charts/tooltip.js
function _sortByTopicsOrder(topics, order=topicsOrder) {
            return order.map((orderName) => topics.filter(({name}) => name === orderName)[0]);
        }
function _sortByTopicsOrder(topics, order=topicsOrder) {
            return order.map((orderName) => topics.filter(({name}) => name === orderName)[0]);
        }
function _sortByTopicsOrder ( topics , order = topicsOrder ) { return order . map ( ( orderName ) => topics . filter ( ( { name } ) => name === orderName ) [ 0 ] ) ; }
Helper method to sort the passed topics array by the names passed int he order arary
@param  {Object[]} topics    Topics data, retrieved from datapoint passed by line chart
@param  {Object[]} order     Array of names in the order to sort topics by
@return {Object[]}           sorted topics object
@private
Helper method to sort the passed topics array by the names passed int he order arary