I suggest we add a score (or ranking) field to the Products and Attributes, make them comparable and them override the compareTo method to sort them according this score or ranking.
This way any controller manipulating the items could simply update the scores and then easily sort the items accordingly.
I suggest we add a score (or ranking) field to the Products and Attributes, make them comparable and them override the compareTo method to sort them according this score or ranking.
This way any controller manipulating the items could simply update the scores and then easily sort the items accordingly.