With SugarORM, I understand the relationship, I can do it
public class Book extends SugarRecord<Book> {
String name;
String ISBN;
String title;
String shortSummary;
Author author;
}
How then can I find on Book.class so that I can order by the authors.
I 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 this does not work
source
share