[odb-users] Ordering of results

Boris Kolpackov boris at codesynthesis.com
Wed Aug 17 06:59:01 EDT 2011


Hi Roland,

Roland Kloeters <roland.kloeters at xcom.de> writes:

> is there any chance of getting the results from a query in an order way?

Yes, for now you will need to use something like this:

result r (db->query<person> ((query::last == "Doe") + "ORDER BY age"));

The native support for order-by (so that you can specify the column as
query::age) is still in the works.

Boris



More information about the odb-users mailing list