task sort fix