sort the table by name by default

This commit is contained in:
David 2015-04-04 21:32:26 -04:00
parent 151bb5d539
commit e7b857aa74

View File

@ -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"
} }