sort report task function sort