orderByIndexReuse.createProperty("firstProp", OType.INTEGER);
orderByIndexReuse.createProperty("secondProp", OType.INTEGER);
orderByIndexReuse.createProperty("thirdProp", OType.STRING);
orderByIndexReuse.createProperty("prop4", OType.STRING);
orderByIndexReuse.createIndex("OrderByIndexReuseIndexSecondThirdProp", OClass.INDEX_TYPE.UNIQUE, "secondProp", "thirdProp");
orderByIndexReuse.createIndex("OrderByIndexReuseIndexFirstPropNotUnique", OClass.INDEX_TYPE.NOTUNIQUE, "firstProp");
for (int i = 0; i < 100; i++) {
ODocument document = new ODocument("OrderByIndexReuse");
document.field("firstProp", (101 - i) / 2);