Try to sort logs correctly when timestamp the same.

Change-Id: I055363e553af61d560c9bb1ff364a8676b106bcf