int r = i1.getInserted().compareTo(i2.getInserted());
Timestamp t1 = i1.getInserted(); Timestamp t2 = i2.getInserted(); if (t1 == null) t1 = TreeViewerTranslator.getDefaultTimestamp(); if (t2 == null) t2 = TreeViewerTranslator.getDefaultTimestamp(); int r = t1.compareTo(t2);
                    public int compare(Object o1, Object o2)                    {                        ImageData i1 = (ImageData)                                       (((TreeImageDisplay) o1).getUserObject());                        ImageData i2 = (ImageData)                                     (((TreeImageDisplay) o2).getUserObject());                                                int r = i1.getInserted().compareTo(i2.getInserted());                        int v = 0;                        if (r < 0) v = -1;                        else if (r > 0) v = 1;                        if (ascending) return v;                        return -v;                    }