+ logViewer.sort("taskid", {sortFunction: sortByTask});
+});
+
+$("#sort-by-node").on("change", function() {
+ logViewer.sort("node", {sortFunction: sortByNode});
+});
+
+$("#set-show-failed-only").on("click", function() {
+ $("#sort-by-task").prop("checked", true);
+ $("#show-failed-tasks").prop("checked", true);
+ $("#show-crunch").prop("checked", false);
+ $("#show-task-dispatch").prop("checked", true);
+ $("#show-script-print").prop("checked", true);
+ $("#show-crunchstat").prop("checked", false);
+ logViewer.filter(makeFilter());
+ logViewer.sort("taskid", {sortFunction: sortByTask});