From 9bb9c5f9aea46863e7cf1e1ad46836a8f5c99168 Mon Sep 17 00:00:00 2001 From: Wanam Date: Tue, 22 Oct 2019 15:02:01 +0200 Subject: [PATCH] Trigger sorting for initial sort column Currently it only sets the toggles for initial sort columns without actually doing the sorting. This fixes https://github.com/pytest-dev/pytest-html/issues/247 --- pytest_html/resources/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_html/resources/main.js b/pytest_html/resources/main.js index 63e04ba7..5d49dbf7 100644 --- a/pytest_html/resources/main.js +++ b/pytest_html/resources/main.js @@ -111,7 +111,7 @@ function init () { show_filters(); - toggle_sort_states(find('.initial-sort')); + sort_column(find('.initial-sort')); find_all('.sortable').forEach(function(elem) { elem.addEventListener("click",