Sortable Table

The purpose of this pen is just to create a basic table sort, this script generates a dynamic headers table based on the data passed, for instance, if you pass the script will generate a table with 2 headers ( name, age ). You can try it by pasting any json data in the textbox in the bottom of the page