update sortbyyear method