drupal 8 tablesorting not working
the reason the sorting that comes with drupal core doesnt work is that it only works for query based content.  If the content is static or otherwise not query based that you need to sort you have the use the client side tablesorting.js as explained here http://tablesorter.com/docs/