fixed time stuff and completed jobs sorting.