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

Closes #4625