Adding sorting by timestamp