Dynamic Picklist

Dynamic Picklist

I was wondering what I have to do to my dynamic picklist so that if value "a" is present multiple times for it to only show in the pick list once

script:
Product  =  Add_Product  [ID != input.ID]sort by product_type;
select_product:ui.add(Product.product_type.getall());