What type of TV do you use, product list or matrix?
With the product list tv, that holds a comma separated list of products, which you can’t immediately sort in on a query for resources.
With the matrix tv, that holds the matrix ID which in theory could be used to join the matrix instance > product instance to query the stock
field or the price index table to sort on current price.
With a resource product implementation you should have a simple stock tv to look at.