3 ms·
This is doable with some JavaScript. Paste the JavaScript from this gist [1] in your console while on the web page, and the table will be sorted descending by y
by bendiksolheim 7y ago
This is doable with some JavaScript. Paste the JavaScript from this gist [1] in your console while on the web page, and the table will be sorted descending by year. Swap `bValue - aValue` on line 4 with `aValue - bValue` to sort ascending.
[1] - https://gist.github.com/bendiksolheim/307a6af9aba2c4360c75b900e484dd58 https://gist.github.com/bendiksolheim/307a6af9aba2c4360c75b9...
- fireattack 7y agoIt breaks/stops at rows with blank "appeared".
- tuespetre 7y agoFloop document.querySelector('tbody').append(...Array.from(document.querySelector('tbody').rows).map(row => ({ row, year: parseInt(row.cells[2].textContent) || 9000 })).sort((a, b) => a.year < b.year ? -1 : a.year > b.year ? 1 : 0).map(x => x.row))