retrieved.add(next);
}
Collections.sort(retrieved, new Comparator<DataModelReflection>() {
@Override
public int compare(DataModelReflection o1, DataModelReflection o2) {
PropertyName name = PropertyName.newInstance("number");
Integer i1 = (Integer) o1.getValue(name);
Integer i2 = (Integer) o2.getValue(name);
return i1.compareTo(i2);
}
});