With SugarORM , I understand in a relationship I can do this
public class Book extends SugarRecord<Book> {
String name;
String ISBN;
String title;
String shortSummary;
// defining a relationship
Author author;
}
How then can i do a find on Book.class such that i can order by authors.
I have tried
Book.find(Book.class, null, null, null, "author.id desc",null);;
and
Book.find(Book.class, null, null, null, "author desc",null);;
and all these wont work