use Id instead of time to sort logs to take advantage of built in index.