repaired the order function

Merged Praetorius, Simon requested to merge issue/order into master

Merge request reports