Change the `sort` boolean option in percolate api to the sort dsl available in search api.

Relates to #4625