Generate a sortable HTML table from JSON