sort task by end and completed at date #174