revert e6d66f25e23a41 (SQL sorting)

'first' and 'last' are used in order to define
time entry start and end day.
So, SQL sorting is need.