Maybe we should return the actual error from the sort call.