String query = "fetch user ORDER BY LENGTH(user_name),user_name";List userList = Ebean.createQuery(User.class, query).findList();
It will throw exception "Expecting [(user_name)] to be asc or desc".
fixed in HEAD.