function idea.allow function calling using the default keyword for any of the inputarguments.
example: https://dbfiddle.uk/FQwnfdmmSo something like this "SELECT * FROM customer_orders(2579927,'order_placed_on DESC', default, 2);"should work.