Discontinuous yielding in ordering alloys