Feature request: Order of items should (also) be based on Comparable
markhm opened this issue · 1 comments
markhm commented
Similar to this item, not not entirely, so it seems.
I would appreciate if the Set
items that are added via setItems(..)
are not only sortable by alphabet, as by setOrdered(true)
, but also by following / implementation of the Comparable
interface. I've set a custom rank for my items in this way (and hoped this would already work).
Much appreciated. 🙏🏻
KasparScherrer commented
You can pass a LinkedHashSet
into multiSelectComboBox.setItems(..)
, the items are then displayed in the order they were added to the linkedHashSet.