Active tasks is now sorted descendingly on start_time
Added duration for active tasks.