How can I specify order when getting all products of a given type?
As an element, it has the same order criteria as entries, assets, &amp;c. So you should have no problem using order('defaultPrice') in your criteria. That's for price low-to-high. For high-to-low, you add desc to the criteria. So: order('defaultPrice desc').