Skip to content

Commit 9bb9c5f

Browse files
authored
Trigger sorting for initial sort column
Currently it only sets the toggles for initial sort columns without actually doing the sorting. This fixes #247
1 parent 0fa73c2 commit 9bb9c5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_html/resources/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function init () {
111111

112112
show_filters();
113113

114-
toggle_sort_states(find('.initial-sort'));
114+
sort_column(find('.initial-sort'));
115115

116116
find_all('.sortable').forEach(function(elem) {
117117
elem.addEventListener("click",

0 commit comments

Comments
 (0)