How to Use JavaScript for Sorting Tables, Step by Step

Click a column header, the rows rearrange, nothing loads. That’s the feature. And it has worked in every browser worth supporting since July 2015, when Array.prototype.sort() reached universal availability per MDN’s browser-compatibility tables, though the algorithm running underneath kept changing…










