LocaleUtilDecoderCandidate candidate = (LocaleUtilDecoderCandidate)o;
int res;
if( value == null && candidate.value == null){
res = 0;
}else if ( value == null ){
res = 1;
}else if ( candidate.value == null ){
res = -1;
}else{
res = value.length() - candidate.value.length();
if ( res == 0 ){
res = index - candidate.index;
}
}
if ( decoder != null && candidate.getDecoder() != null ){
// System.out.println( "comp:" + decoder.getName() + "/" + candidate.getDecoder().getName() + " -> " + res );
}
return( res );