toggling of the sort is implemented.