scope.toggleSort = function (e) {
if (scope.isActive()) {
tableController.toggleSort();
} else {
tableController.setSortExpr(expr);
}
tableController.doSort(scope[attrs.comparatorFn]);
e.preventDefault();
};
...
I can't use attrs.comparatorFn as html automatically renders my comparatorFn to comparatorfn (case-insensitive). Changing the code to use attrs.comparatorfn solves this issue. (Tried to send a PR but didn't have access, so I report this instead.)
Hi,
In the sort portion of sortableHeader, you have:
scope.toggleSort = function (e) { if (scope.isActive()) { tableController.toggleSort(); } else { tableController.setSortExpr(expr); } tableController.doSort(scope[attrs.comparatorFn]); e.preventDefault(); }; ...
I can't use attrs.comparatorFn as html automatically renders my comparatorFn to comparatorfn (case-insensitive). Changing the code to use attrs.comparatorfn solves this issue. (Tried to send a PR but didn't have access, so I report this instead.)
Thanks, Reynard.