tristen / tablesort

:arrow_up_down: A small tablesorter in plain JavaScript
https://tristen.ca/tablesort/demo/
MIT License
1.1k stars 179 forks source link

Descending sort brings headers to bottom of table #170

Closed tbreetz closed 6 years ago

tbreetz commented 6 years ago

When sorting by descending, the headers of the table are sent to the bottom of the table.

image

It will also put the headers in the middle of the table where the sorted column goes from negative to positive numbers.

image

tristen commented 6 years ago

👋 my suspicion is the markup for your table isn't correct. Is your heading wrapped in a <thead> element?

tbreetz commented 6 years ago

@tristen ah, yes. That was it, thank you!