return error when missing sort order param

Signed-off-by: nixnodes <code@eth.si>