i'm trying to use chaining orderBy
for this code:
List messages = G.messagesListsDao.queryBuilder().where().eq("group_id", group_id).query();
i can not find good document for how to use orderBy()
chain for this code befor using .query()
for example this code:
GenericRawResults<String[]> raw_result =G.messagesListsDao.queryRaw("SELECT * FROM messageslist WHERE group_id = " + group_id + " ORDER BY received_date");
to:
List messages = G.messagesListsDao.queryBuilder().where().eq("group_id", group_id).orderby("id",false).query();
You can call orderBy() more than once, like this:
This is covered by the documentation. To quote:
Hope it works !