[entropy.db.sql] retrieveTreeUpdatesActions, listAllTreeUpdatesActions: order results by date
[entropy.server] _rewrite_treeupdates: filter out duplicated actions