@Override
    public int compare(Patient o1, Patient o2) {
        //throw new UnsupportedOperationException("Not supported yet.");
        if(o1.isPrivatpatient() == true && o2.isPrivatpatient() == false){
            return -1;
        }
        if(o1.isPrivatpatient() == false && o2.isPrivatpatient() == true){
            return +1;
        }
        if(o1.isPrivatpatient() == true && o2.isPrivatpatient() == true){
            return 0;
        }
        if(o1.isPrivatpatient() == false && o2.isPrivatpatient() == false){
            return 0;
        }else{
            return 0;
        }
        
    }