add sorting (#23)

keep only one table in index.php and it’s sortable