Fixed sorting of years on graphs