The problem is that I don't really know which is the order of listtransactions result.
The documentation doesn't say anything about this,
I don't know the answer but if someone does please tell me and maybe some dev could include it
Is ordered by confirmations? By timereceived? both?