Sorting in planner now recalculates totals and saves tasks