String s1 = stringEncoder.encode(o1.toString()); String s2 = stringEncoder.encode(o2.toString());
Comparable s1 = (Comparable) ((Encoder) stringEncoder).encode(o1); Comparable s2 = (Comparable) ((Encoder) stringEncoder).encode(o2);
    public int compare(Object o1, Object o2) {        int compareCode = 0;        try {            String s1 = stringEncoder.encode(o1.toString());            String s2 = stringEncoder.encode(o2.toString());            compareCode = s1.compareTo(s2);        }         catch (EncoderException ee) {            compareCode = 0;        }        return (compareCode);    }