Prepare for custom lists

This commit is contained in:
relikd
2020-09-26 21:32:44 +02:00
parent 5dafcc4374
commit 56087d5b21
4 changed files with 52 additions and 34 deletions

View File

@@ -51,9 +51,9 @@ function sort_by(col, asc) {
_data.sort(function(a, b){ return a[i] < b[i] ? -o : a[i] > b[i] ? o : 0; });
update(col, asc);
}
function rank_js(fname) {
function rank_js(fname, column, order) {
loadJSON(fname, function(response) {
_data = JSON.parse(response);
update(12,-1);
update(column, order);
});
}