sort the table based on the first column when opening