Sort By at Query Level

A CMS which I am looking to integrate Algolia into. I am using Algolia’s API through JavaScript. Each person/company using our CMS will have one index for all their data, and all indexes will be within one Algolia account.

A company has products where they want their site users to sort products by desc(price) and asc(price).

Is there a possible way to sort the products at query level? I am aware of the possibility of setting up index replicas such as products_price_desc and products_price_asc - but in our case, there will be too many indexes to manage.