adding time sort