Little fix for time sort