Hey everyone,
i have several products with 2 attributes like color and size. I think it would be awesome to sort the "add to cart form - drop down menue" by the stock level of the products.

size#1 - color#1 (stock-lvl :5)
size#2 - color#1 (stock-lvl :4)
size#3 - color#2 (stock-lvl :2)
size#4 - color#3 (stock-lvl :1)

Does anyone of you have an idea to solve this? I would start at the product/sku - array from the node but I don't know if this is the best way..

cheers!