Sort products in Query based on sales data or review score

It’s not possible to build a “Most popular products” query, because there is no way to sort products based on sales data. The same is for the reviews. No way to sort products based on review score.

Please, add this functionality.