Update to fix #5911

Missed get_term calls still with slug, reverted to wc_get_product_terms (get_the_terms, whilst great for performance, bypasses all the special sorting implemented by the former).