18 package org.turro.dossier.dossier;
20 import java.util.Comparator;
21 import org.turro.dossier.entity.Dossier;
29 private static final String nullString =
32 public int compare(Object o1, Object o2) {
34 String c1 = nullString, c2 = nullString;
38 if(d2.getCategory() !=
null) {
39 c2 = (d2.getCategory().getFullDescription() + nullString).substring(0, nullString.length());
42 c2 += d2.getDescription() +
"---" + d2.getId();
43 return c1.compareTo(c2);
int compare(Object o1, Object o2)
String getFullDescription()