Add ability to cancel the sort