src/charts/bar.js
function sortData(unorderedData) {
            let {data, dataZeroed} = unorderedData;

            if (orderingFunction) {
                data.sort(orderingFunction);
                dataZeroed.sort(orderingFunction)
            }

            return { data, dataZeroed };
        }
function sortData(unorderedData) {
            let {data, dataZeroed} = unorderedData;

            if (orderingFunction) {
                data.sort(orderingFunction);
                dataZeroed.sort(orderingFunction)
            }

            return { data, dataZeroed };
        }
function sortData ( unorderedData ) { let { data , dataZeroed } = unorderedData ; if ( orderingFunction ) { data . sort ( orderingFunction ) ; dataZeroed . sort ( orderingFunction ) } return { data , dataZeroed } ; }
Sorts data if orderingFunction is specified
@param  {BarChartData}     clean unordered data
@return  {BarChartData}    clean ordered data
@private
Sorts data if orderingFunction is specified