made some headway in sorting and highliting index table