fixed problems in year sorting