Allow group_by arguments in search requests

order_by parameter
Remove blank lines before and after this `if` block.