UIT-16: Sort activities by date to show them in the right order.