#3 optional GtdList sort function