Forum:Making sortable tables

I wanted to improve an article by formatting some of its content into sortable tables. So far I have only been able to make non-sortable tables which are only arguably rather than definitively an improvement on the presentation of the content in question.

So far the my best attempt at making a sortable table is something like the following:

I've read up somewhat on methods for manually creating tables using the Wiki markup syntax, besides which I've also tried copying some tables to fiddle with, but no attempt thus far has succeeded in creating a sortable table.