refs #5808 if there are many logs having the same server time, sort them by the autoincrement id