reverting sorted_for with agenda