Added ability to sort toggle