add data sorter to index.html table
fix sortData with counter