sorting by time in renderlog()