Added function to track list sorting status

Created checkSort to track when the list is being sorted and changed
toggleRemove to only work when the items are not being sorted