@@ -383,7 +383,8 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
383
383
return sortAscending ( b , a ) ;
384
384
}
385
385
386
- function clearArrows ( arrowUp = "▲" , arrowDown = "▼" ) {
386
+ function clearArrows ( arrowUp , arrowDown , initialArrow = "↕" ) {
387
+ th . innerHTML = th . innerHTML . replace ( initialArrow , "" ) ;
387
388
th . innerHTML = th . innerHTML . replace ( arrowUp , "" ) ;
388
389
th . innerHTML = th . innerHTML . replace ( arrowDown , "" ) ;
389
390
}
@@ -515,13 +516,12 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
515
516
columnIndexesClicked
516
517
) {
517
518
const desc = th . classList . contains ( "order-by-desc" ) ;
518
- const arrow = { up : " ▲" , down : " ▼" } ;
519
+ const initialArrow = " ↕" ;
520
+ const arrow = { up : " ↑" , down : " ↓" } ;
519
521
const fillValue = "!X!Y!Z!" ;
520
522
521
- if ( desc && table . hasClass . tableArrows ) {
522
- th . insertAdjacentText ( "beforeend" , arrow . down ) ;
523
- } else if ( table . hasClass . tableArrows ) {
524
- th . insertAdjacentText ( "beforeend" , arrow . up ) ;
523
+ if ( table . hasClass . tableArrows ) {
524
+ th . insertAdjacentText ( "beforeend" , initialArrow ) ;
525
525
}
526
526
527
527
let timesClickedColumn = 0 ;
0 commit comments