fixed a problem with sort_by method when adding time entries