[odb-users] Is that possible to order the child objects based on some specific column

不明真相 icewill9999 at vip.qq.com
Thu Oct 31 03:56:51 EDT 2019


Hi, i searched the mailing list but no answer found for this issue.


Say i have two tables, A and B of 1:N relationship, B is eager loaded.


#pragma db object
class A
{
........
&nbsp;vector<weak_ptr<B&gt;&gt; b_;

}


class B
{
.......
int column_C;
}


i want the B objects was ordered by column_C in the vector. Is that possible to do that? i use odb 2.4.0.


thanks in advance.


Regards


More information about the odb-users mailing list