Sort the grid set tasks.