package com.atlassian.stash.internal.rest.user;

import javax.validation.ConstraintViolation;
import java.io.Serializable;
import java.util.Comparator;

public class ConstraintViolationComparator implements Comparator<ConstraintViolation>, Serializable {

    @Override
    public int compare(final ConstraintViolation o1, final ConstraintViolation o2) {
        return o1.getMessage().compareTo(o2.getMessage());
    }

}
