Fix chronological order bug

Year was not taken into account.
Merge pull request #20 from tomtoump/patch-1

Fix chronological order bug