starshard/peafowl
Template
1
Fork 0
mirror of https://github.com/starshardstudio/peafowl.git synced 2024-11-29 00:14:17 +00:00
peafowl/_static/scripting/installSortOnLoad.js

6 lines
163 B
JavaScript
Raw Normal View History

2024-07-07 02:45:11 +00:00
window.onload = function() {
const tableId = document.querySelector("table").id
installSort(tableId)
sortTable(tableId, readRating, (a, b) => b - a)
}