I have a problem with Highcharts. I need to sort series by button and then redraw chart with new data array. New series have right sorting
const sortedSeries = [...series].sort(function (a, b)...
but when I try to update chart:
chart.update({ series: sortedSeries }
they redraw with correct sorting but incorrect data inside series. Could you help? Thanks a lot.
my code is in here please check it.