Fix chronological order bug

Year was not taken into account.