public Revision[] getRevisions() {
List list = new ArrayList(revisions);
Collections.sort(list, new Comparator() {
public int compare(Object o1, Object o2) {
if (o1 instanceof Revision && o2 instanceof Revision ) {
Revision m1 = (Revision) o1;
Revision m2 = (Revision) o2;
return m1.getName().compareTo(m2.getName());
}
return 0;
}
});
return (Revision[]) list.toArray(new Revision[list.size()]);