This example shows the Hybrid App being sorted by display
name in reverse alphabetical
order:
public Comparator getHybridAppComparator() {
return new Comparator() {
public int compare(Object oApp1, Object oApp2) {
String sDisplayName1 = ((HybridApp) oApp1).getDisplayName()
.toLowerCase();
String sDisplayName2 = ((HybridApp) oApp2).getDisplayName()
.toLowerCase();
return (-1)*sDisplayName1.compareTo(sDisplayName2);
}
};
}