Mam 3 modele: Event, Artist, Lineup
Event:
has_many :lineups
has_many :artists, -> { uniq }, through: :lineups
Artist:
has_many :events, through: :lineups
has_many :lineups
Lineup:
belongs_to :event
belongs_to :artist
Model Lineup ma kolumnę integer o nazwie artist_order.
Chciałbym aby np. Event.last.artists dawało mi artystów posortowanych po tym artist_order, jak to można zrobić? Bo troszkę się przyciąłem 