sort task history by observed