Store events in a sorted way, store transferring in a correct way