final int p = getPreferenceOrder().compareTo(o.getPreferenceOrder());
return p == 0 ? getExternalId().compareTo(o.getExternalId()) : p;
}
public void deleteWithNotification() {
final SystemSender sender = getRootDomainObject().getSystemSender();
if (sender != null) {
final Registration registration = getOutboundMobilityCandidacySubmission().getRegistration();
final Recipient recipient = new Recipient(UserGroup.of(registration.getPerson().getUser()));
new Message(sender, recipient, BundleUtil.getString(Bundle.STUDENT, "label.email.deleted.contest.subject"),
BundleUtil.getString(Bundle.STUDENT, "label.email.deleted.contest.body",