tristen / tablesort

:arrow_up_down: A small tablesorter in plain JavaScript

Home Page:https://tristen.ca/tablesort/demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Descending sort brings headers to bottom of table

tbreetz opened this issue · comments

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

image

  • This screenshot is sorting by Priority

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

image

  • This screenshot is sorting by Completion %.

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

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