Fix sortable_table_headers method in page bar generator