You can't do that with Java API without SQL.
OrientDB - Sorting a cluster by a property
Question
How do you sort a cluster using java API? In other words, how do you do
List<ODocument> results = db.query(new OSQLSynchQuery<ODocument>("SELECT * FROM FilteredCompounds ORDER BY cidScore DESC"));
with JAVA API??
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow