I have a script placed before the html table but it does not sort rows when clicking. Everything is inside body tag. No console errors too. What is wrong here?