Fix bug in callbackSort

callbackSort incorrectly assumes that BC=1 at a couple of points.