Timer and sorting work