Hi!
I’ve two models:
Project has_many :works
Work belongs_to :project
Work contains :year_start and :year_end
I’ve setup a class method to retrieve the first and last year of my
Project.works
How could I get projects ordered by ‘first’ year?
Thanks,
Ettore