Added support for order_by

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>