GP radar chart can now be sorted by year based on variable in rails controller