sort sync logs by date, then seq id (so they sort correctly on cloudant)

http://manage.dimagi.com/default.asp?124599