add sort comparator and 2 relative tasks