Add a toggle method for sort direction