Sort a Google DataTable

https://stackoverflow.com/questions/23764280/sort-in-google-table-chart

Sort your DataTable:
// sort by column 0, descending
data.sort({column: 0, desc: true});
or use a sorted DataView:
var view = new google.visualization.DataView(data);
view.setRows(data.getSortedRows({column: 0, desc: true}));
table.draw(view, options);

Comments

Popular posts from this blog

How to create an organizational chart in your webpage using Google Organization Chart Tools

Embed JSX code with if condition in React app