moebius#342: Columns are not sorted correctly (Natural Sort algorithm)

Issue #31
https://github.com/MoonchildProductions/moebius/pull/342
This commit is contained in:
janekptacijarabaci 2018-03-02 18:22:50 +01:00 committed by Roy Tam
commit 8a1405d8b9
8 changed files with 218 additions and 35 deletions

View file

@ -733,6 +733,20 @@ function showColumn(id, state) {
}
}
/**
* Toggle sort direction on a column by clicking on the column header.
*
* @param {String} id
* The uniqueId of the given column.
*/
function clickColumnHeader(id) {
let columns = gUI.table.columns;
let column = columns.get(id);
let header = column.header;
header.click();
}
/**
* Show or hide all columns.
*