Make order of duplicates deterministic
Created by: ZeHiro
The order of duplicates is not deterministic. The duplicates should be ordered by :
- Latest import date (largest import date of both operations)
- First import date (smalled import date of both operations), in case there are 3 duplicates or more
Maybe not necessary to fix in current duplicates due to #132