From 88cf11d45d8e6077b81edd76233a922584df71be Mon Sep 17 00:00:00 2001 From: tracer Date: Wed, 26 Oct 2022 12:46:03 +0200 Subject: [PATCH] removed init from sortOrder --- public/assets/js/functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/assets/js/functions.js b/public/assets/js/functions.js index 6a2ecc8..aa03134 100644 --- a/public/assets/js/functions.js +++ b/public/assets/js/functions.js @@ -117,8 +117,8 @@ function sortBy(column) { let rowYNumber = rowYId.charAt(rowYId.length -1) let valueY = document.getElementById(column + '_' + rowYNumber).value - let currentSortOrder = document.getElementById(column + '_sort') - let sortOrder = 0 + let currentSortOrder = document.getElementById(column + '_sort') + let sortOrder if (currentSortOrder.innerHTML === 'asc') { sortOrder = 1 } else {