Fix signature of orderby -- Related to 183

@mlucy does it look good for you?

Fix for #183