Organizing and grouping an array by year

if you fix your date format to be yyyy-mm-dd they’ll just naturally order themselves and you won’t have to do all this complicated output.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)