Sortable tables and json view