We are building an API for an app and want to order our products by popularity. Now is my question, how would I go about that? We are already loading products via /catalog/product (and it all works and stuff) but for some reason I can't see to be able to order the products on popularity. From what I understand from it, I have to join a different table to do this. Isn't there an easier way of doing this? Also, how does the default sorting behavior work? When I make a call without an orderBy, does it automatically order on position?
Another question to add: do you have tips on google-ing stuff like this? Often times Google comes up with answers who are not entirely related to my question or more frontend related.