Hi guys,
I have 3 tables, first one with different instruments, second one with different sets and the last one with the 2 primary keys (many-to-many). So a set can contain multiple instruments and an instrument can be in multiple sets.
Now I want to sort the gallery "topInstruments" by the most listed instruments - instruments used multiple times in sets should be displayed first in the gallery, the ones used only once should be displayed at the bottom of the gallery.
Does anybody know how the sort should look like?
Thanks