sort the table by name by default
This commit is contained in:
parent
151bb5d539
commit
e7b857aa74
@ -104,8 +104,11 @@
|
|||||||
|
|
||||||
// so long, so messy
|
// so long, so messy
|
||||||
function showInfo(gData) {
|
function showInfo(gData) {
|
||||||
|
tableData = gData.slice(0).sort(
|
||||||
|
function(a, b){ return a.name == b.name ? 0 : +(a.name > b.name) || -1; }
|
||||||
|
);
|
||||||
tableOptions = {
|
tableOptions = {
|
||||||
"data": gData,
|
"data": tableData,
|
||||||
"tableDiv": "#hackSpotsTable",
|
"tableDiv": "#hackSpotsTable",
|
||||||
"filterDiv": "#tableFilter"
|
"filterDiv": "#tableFilter"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user