 a new column, default to ascending.
          if (currentSortedColumn !== columnIndex) {
            ascending = true;
            currentSortedColumn = columnIndex;
          } else {
            ascending = !ascending;
          }

          rows.sort((a, b) => {
            let aText = a.cells[columnIndex].textContent.trim().toLowerCase();
            let bText = b.cells[columnIndex].textContent.trim().toLowerCase();

            // If sorting the file size column, convert sizes to bytes.
            if